Q. Create a program in python wages.py that assumes people are paid double time for hours over 60. They get paid for at most 20 hours overtime at 1.5 times the normal rate. For example, a person...



Q. Create a program in python wages.py that assumes people are paid double time for hours over 60. They get paid for at most 20 hours overtime at 1.5 times the normal rate.



For example, a person working 65 hours with a regular wage of $10 per hour would work at $10 per hour for 40 hours, at 1.5 * $10 for 20 hours of overtime, and 2 * $10 for 5 hours of double time, for a total of



10*40 + 1.5*10*20 + 2*10*5 = $800.



The number of hours should be generated randomly between 35 and 75.



If the number of working hours is less than 40, display message “The salary cannot be generated” with sound of system bell as a warning.



Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here