Ask Question
2 May, 01:25

Assume that a bool variable workedovertime has been declared, and that an int variable hoursworked has been declared and initialized. write a statement that assigns the value of workedovertime to true if hoursworked is greater than 40 and false otherwise.

+3
Answers (1)
  1. 2 May, 03:05
    0
    Workedovertime = (hoursworked > 40) ? true : false;
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Assume that a bool variable workedovertime has been declared, and that an int variable hoursworked has been declared and initialized. write ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers