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 true if hoursWorked is greater than 40 and false otherwise.

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  true  if hoursWorked is greater than  40 and false  otherwise.

LANGUAGE: C++

CHALLENGE:

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  true  if hoursWorked is greater than  40 and false  otherwise.

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days – Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level