CS 40800 Quiz 2 (Aug 27)

If you work more than 20 hours at the Daisy Drive-in, they pay you $8/hour for first 20 hours plus $10/hour for all hours above 20 up to 40. If you work more than 40 hours, they pay you $12/hour for all hours above 40. Otherwise, they pay you $7/hour.

In testing the Daisy Drive-in paycheck program, what boundary values should you use?

Submit this quiz on paper or via email to dunsmore@purdue.edu (Subject: Quiz 2) by 4:20 pm today.

0 to 20 hours = hours x $7
>20 to 40 hours = 20 x $8 + (hours-20) x $10
>40 hours = 20 x $8 + 20 x $10 + (hours-40) x $12

Boundary value hours: 0, 19, 20, 21, 39, 40, 41