-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGradingSystem.py
More file actions
58 lines (53 loc) · 2.16 KB
/
Copy pathGradingSystem.py
File metadata and controls
58 lines (53 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
def inputGrade():
mark = float(input("Input Grade: "))
roundMark = round (mark)
return roundMark
mark = inputGrade()
if mark >= 97 and mark <= 100:
print("Grade/Mark: 1.0 ")
print("Description: Excellent")
elif mark >= 94 and mark <= 96:
print("Grade/Mark: 1.25")
print("Description: Excellent")
elif mark >= 91 and mark <= 93:
print("Grade/Mark: 1.5")
print("Description: Very Good")
elif mark >= 88 and mark <= 90:
print("Grade/Mark: 1.75")
print("Description: Very Good")
elif mark >= 85 and mark <= 87:
print("Grade/Mark: 2.0")
print("Description: Good")
elif mark >= 82 and mark <= 84:
print("Grade/Mark: 2.25")
print("Description: Good")
elif mark >= 79 and mark <= 81:
print("Grade/Mark: 2.5")
print("Description: Satisfactory")
elif mark >= 76 and mark <= 78:
print("Grade/Mark: 2.75")
print("Description: Satisfactory")
elif mark == 75:
print("Grade/Mark: 3.0")
print("Description: Passing")
else:
mark >= 65 and mark <= 74
print ("Grade/Mark: 5.0")
print ("Description: Passing")
def otherRemarks():
print("\n")
answer = input("Did you get an INC, W, or D as your mark? ").upper()
if answer == "YES":
print("\n")
print('\033[1m' + 'INCOMPLETE' + '\033[0m')
print("An Incomplete (Inc.) mark is temporarily given to a student who may \nqualify for passing but has not taken any major exam or its \nequivalent. \n" )
print('\033[1m' + 'WITHDRAWN' + '\033[0m')
print("A Withdrawn Mark is given if the student voluntarily withdraws in writing \nfrom a subject at any time but not less than one (1) month before the final \nexamination.\n")
print('\033[1m' + 'DROPPPED' + '\033[0m')
print("A Dropped Mark is given when the faculty member drops the student \nfrom his/her roll for having exceeded the allowable number of absences or for \nnot having attended the class since the start of the term.\n")
elif answer == "NO":
print('\033[1m' + 'CONGRATULATIONS' + '\033[0m' " You passed this semester, we are proud of you!")
else:
print("Invalid answer.")
return answer
otherRemarks()