Bill makes $5 an hour and worked 42 hours in a week. How much is Bill paid?

Answer:

For the first 40 hours Bill gets paid: $5 * 40 = $200.

For the 2 hours above 40 Bill gets paid" $5 * 2 * 1.5 = $15.

Bill's total pay for the week is $200 + $15 = $215.

Two-way Decision about Pay

Here is the problem: You want to write a program that calculates the weekly pay for one employee. The program should:

QUESTION 17:

Do you see where there is a two-way decision in this program?