WAP to accept no. of hours worked and rate per hour using method call.
Calculate the wages of a worker as: hours*rate.
Answers
Answered by
0
Explanation:
hrs = input("Enter Hours:")
h = float(hrs)
xx = input("Enter the Rate:")
x = float(xx)
if h <= 40:
print( h * x)
elif h > 40:
print(40* x + (h-40)*1.5*x)
Similar questions