Lab exercise 1
1. Write an if statement that assigns 0 to x
when y is equal to 20.
2. Write an if statement that multiplies
payRate by 1.5 when hours is greater than 40
3. Write a C++ program by using if/else
statement that prints the message “The number
is not valid.” if the variable hours is outside the
range 0 through 80.