Ask Question

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.

+4
Answers (1)
  1. 3 August, 23:19
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers