Question: Python: Rewrite your pay computation with 1.5 times for overtime and create a function called computePay which takes two parameters (hours and rate). Function prototype:

Python:
Rewrite your pay computation with 1.5 times for overtime and create a function called computePay which takes two parameters (hours and rate). Function prototype: computePay(hours, rate) You need to create this function and call this function. When you call the function, try to make your code to be interactive.
Example input and output:
Enter Hours: 45
Enter Rate: 10
Pay: 475.0
#question2 try hours-int(input("Enter hours:") rate-int (input("Enter rate: ) if(hours>40): pay- 40 rate pay+( if(hours
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
