Skip to content

Commit 4142bae

Browse files
committed
1 parent 1c22e67 commit 4142bae

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
hrs = raw_input("Enter Hours:")
2+
h = float(hrs)
3+
rate = raw_input("Enter PayRate:")
4+
r = float(rate)
5+
grosspay = h * r
6+
if h <= 40 :
7+
print grosspay
8+
else:
9+
grosspay = r * 40 + (r * 1.5 * (h - 40))
10+
11+
print grosspay

Assignments/classwork.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
number = int(raw_input("enter a number: "))
2+
if number > 10:
3+
print 'Greater than 10'
4+
elif number == 10:
5+
print 'The number is 10'
6+
else:
7+
print 'Less than 10'
8+
print "Your number is ",number

0 commit comments

Comments
 (0)