Answer:

' Overtime Pay Program
' Employees over 40 hours make time and a half.
'
PRINT "What is the base pay rate"
INPUT RATE
PRINT "How many hours"
INPUT HOURS

IF HOURS > 40  THEN
    LET OVERTIME = HOURS - 40
    LET PAY = 40 * RATE + OVERTIME * 1.5 * RATE
ELSE
    LET PAY = HOURS * RATE
END IF
'
PRINT "Your pay is", PAY
END

End of the Chapter

That is the end of this chapter. You may wish to review the following. Click on a term that interests you to go to where it was discussed.

The next chapter will continue the discussion of two-way decisions. You will learn how to program decisions that are based on more complicated questions.

You have reached the end of the chapter.

go to previous page   go to home page