Lallo/PR4E

you must prompt for the date (please help)

Opened this issue · 1 comments

def computepay(h,r):
if h > 40 :
h1 = h - 40
pay =(h - h1) * r + h1 * (r * 1.5)
else:
pay = h * r
return pay

hrs = (raw_input("Enter Hours:"))
sh = float(hrs)
rph = (raw_input("Enter Rate per hour:"))
sr = float(rph)

p = computepay(45,10.50)
print("pay",p)

def computepay(h,r):
if h>=40:
pay=r*(40)+r11.5*(h-40)
return(pay)
hrs=input("Enter hours:")
h=float(hrs)
rate=("enter rate:")
r=float(rate)
p=computepay(h,r)
print ("Pay",p)