Question: Answer: Script File: Figure: 3.2 A worker is paid according to his hourly wage up to 40 hours per week, and 50% more for overtime

Answer:
Script File:
Figure:
3.2 A worker is paid according to his hourly wage up to 40 hours per week, and 50% more for overtime in the next 15 hours. If a worker works more than 55 hours, this overtime is paid 100% more. Write a program in a script file that calculates the pay to a worker. The program asks the user to enter the number of hours and the hourly wage. The program then displays the pay. Test your program on two cases: (a) 30 hours and S10 hourly wage (b) 50 hours and S9 hourly wage (c) 60 hours and S9 hourly wage. Show the program and the three testing results
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
