Question: Design and develop a program that calculates total pay based on hourly rate. For example, if a user enters 1 0 hours and has an

Design and develop a program that calculates total pay based on hourly rate. For example, if a user enters 10 hours and has an hourly rate of 8.50, then your program should calculate the total pay 85.0(i.e., #hours * hourly pay rate). However, if a person works over 40 hours, then, any hour after 40 hours should be 1.5 times the regular hourly rate.
For example, 50 hours with an hourly rate of 8.5 should be (40*8.5+(10*(8.5*1.5)))=467.5

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!