Exercises
September 13 - September 15, 2006
To ensure that you receive appropriate laboratory credit, for each
exercise make sure that I have looked at your source code and seen
a demonstration of your working program.
- Write a program to calculate the amount of money the user will receive on his/her paycheck. Your program will prompt the user for his/her base hourly pay rate and the number of hours he/she worked and calculate the total pay. Your program should appropriately calculate overtime pay; any hours worked in excess of 40 should be paid at a rate of 150% of the base pay. For example, if the user worked 55 hours at $10 per hour, the total pay would be (40x10)+(15*(10*1.5)). Use functions where appropriate.
Sami Rollins