Write a conditional that multiplies the values of the variable pay by one-and-a-half if the value of the boolean variable workedOvertime is true .
LANGUAGE: C++
CHALLENGE:
Write a conditional that multiplies the values of the variable pay by one-and-a-half if the value of the boolean variable workedOvertime is true.
SOLUTION:
if(workedOvertime){ pay = pay * 1.5; }