Skip to content

Commit b4e1250

Browse files
Week 6 Assignment 4.6
1 parent 2e907a8 commit b4e1250

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Week 6 Assignment 4.6.py

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
def computepay(h,r):
2+
w=r*1.5
3+
t=h-40
4+
if(h>40):
5+
x=40*r+t*w
6+
return x
7+
else:
8+
x=h*r
9+
return x
10+
11+
12+
13+
hrs = input("Enter Hours:")
14+
h = float(hrs)
15+
rate = input("Enter rate:")
16+
r = float(rate)
17+
p = computepay(h,r)
18+
print("Pay",p)

0 commit comments

Comments
 (0)