Question: Write the code that completes the following tasks: Get user input for the weekly number of hours a user has worked (expect a potential float
Write the code that completes the following tasks:
- Get user input for the weekly number of hours a user has worked (expect a potential float input)
- Get the user input for the pay rate per hour (expect a potential float input)
- Validate the user input to ensure that the user has entered a positive number for the number of hours but no more than 60 hours.
- Calculate the weekly pay considering that the overtime pay at 1.5 hourly rate must be paid for any time worked over 40 hours a week.
- Comment with description of what each statement does
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
