Created
February 22, 2015 14:04
-
-
Save jiyeonseo/a0d3582b1176cede4b15 to your computer and use it in GitHub Desktop.
Assignment 4.6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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