Created
December 8, 2016 20:23
-
-
Save talha08/fe09bf2620d1075bbd918ae1aae24a7d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Chapter 4 problem : | |
def computepay(hh,r): | |
if hh> 40: | |
h =float(hh) | |
ex = h- 40 | |
p = ex * 1.5 | |
c = h - ex | |
k = c + p | |
m = k * float(r) | |
return m | |
else: | |
h = float(hh) | |
m = h * float(r) | |
return m | |
hrs = raw_input("Enter Hours:") | |
mo = raw_input("Enter Pay:") | |
p = computepay(hrs,mo) | |
print p |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment