Skip to content

Instantly share code, notes, and snippets.

@jiyeonseo
Created February 22, 2015 14:04
Show Gist options
  • Save jiyeonseo/a0d3582b1176cede4b15 to your computer and use it in GitHub Desktop.
Save jiyeonseo/a0d3582b1176cede4b15 to your computer and use it in GitHub Desktop.
Assignment 4.6
def computepay(h,r):
if h > 40 :
pay = 40*r+(h-40)*r*1.5
else :
pay = h*r
return pay
hrs = raw_input("Enter Hours:")
rate = raw_input("Enter Rate:")
p = computepay(float(hrs),float(rate))
print p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment