Computer Science, asked by saibrihatipokala, 1 month ago

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 iharshupandey
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