Question: I need to edit the following program to include a try and except block to calculate the amount of overtime hours. def computepay ( hours
I need to edit the following program to include a try and except block to calculate the amount of overtime hours.
def computepayhours rate :
# printIn computepay", hours, rate
if hours :
reg rate hours
otp hours rate
pay reg otp
else:
pay hours rate
# printReturningpay
return pay
name inputEnter your name:
ID inputEnter your employ ID number:
h inputEnter Hours:
r inputEnter Rate:
fh floath
fr floatr
xp computepayfhfr
printGross Pay:",xp
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
