Skip to content

Commit d50b017

Browse files
committed
#3.3
1 parent 63295d1 commit d50b017

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

Assignments/assignments3_rajarshi_roy.py renamed to Assignments/assignments3.1_rajarshi_roy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
hrs = raw_input("Enter Hours:")
22
h = float(hrs)
3-
rate = raw_input("Enter PayRate:")
3+
rate = raw_input("Enter PayRate: ")
44
r = float(rate)
55
grosspay = h * r
66
if h <= 40 :
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
s = raw_input("Enter Score: ")
2+
score = float(s)
3+
if score > 1.0 :
4+
print "value out of range"
5+
elif 1.0 >= score >= 0.9:
6+
print "A"
7+
elif .9 > score >=.8:
8+
print "B"
9+
elif .8 > score >=.7:
10+
print "D"
11+
elif .7 > score >=.6:
12+
print "D"
13+
else:
14+
print "Error"

0 commit comments

Comments
 (0)