Ask Question
18 October, 10:43

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. 18 October, 12:36
    0
    Workedovertime = (hoursworked > 40) ? true : false;
Know the Answer?
Not Sure About the Answer?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers