Question: Using Python code:- Uses a function called computePay The function receives two parameters (hours and rate) The function calculates pay as follows: First 40 hours
Using Python code:- Uses a function called computePay The function receives two parameters (hours and rate) The function calculates pay as follows: First 40 hours are at the regular pay rate Hours over 40 hours are paid at 1.5 times the hourly rate o The function returns the pay amount The "main" or "driver" will do the following: -Prompts the user for the numbers of hours an employee worked. -Prompt the user for the pay rate of the employee. -Use try and except so the program handles non-numeric input gracefully. -Call/run the function computePay() -Displays the amount the employee should be paid. Use the following format where 9999.99 is the pay amount returned from the function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
