forked from Anwesha2003/Anwesha2003
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
138 lines (138 loc) · 5.61 KB
/
main.py
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
while(True):
print("Press 1 to do student operations")
print("Press 2 to do course operations")
print("Press 3 to do batch operations")
print("Press 4 to do department operations")
print("Press 5 to do examination operations")
print("Press 0 to stop")
x = int(input("Enter your choice: "))
if(x == 0):
break
elif(x == 1):
from student import *
while(True):
print("Press 1 to create a student")
print("Press 2 to update a student's details")
print("Press 3 to remove a student")
print("Press 4 to generate report card of a student")
print("Press 0 to return to main menu")
y = int(input("Enter yout choice: "))
if(y == 0):
break
elif(y == 1):
student_id = input("Enter student ID: ")
student_name = input("Enter student name: ")
createStudent(student_id, student_name)
elif(y == 2):
ostudent_id = input("Enter old student ID: ")
nstudent_id = input("Enter new student ID: ")
name = input("Enter name: ")
updateStudent(ostudent_id, nstudent_id, name)
elif(y == 3):
student_id = input("Enter student ID: ")
removeStudent(student_id)
elif(y == 4):
student_id = input("Enter student ID: ")
reportCard(student_id)
else:
print("Invalid input. Try again.")
elif(x == 2):
from course import *
while(True):
print("Press 1 to create a course")
print("Press 2 to view performance of students on course")
print("Press 3 to show course statistics as histogram")
print("Press 0 to return to main menu")
y = int(input("Enter yout choice: "))
if(y == 0):
break
elif(y == 1):
course_id = input("Enter course ID: ")
course_name = input("Enter course name: ")
createCourse(course_id, course_name)
elif(y == 2):
course_id = input("Enter course ID: ")
checkPerformance(course_id)
elif(y == 3):
student_id = input("Enter course ID: ")
courseStatistics(course_id)
else:
print("Invalid input. Try again.")
elif(x == 3):
from batch import *
while(True):
print("Press 1 to create a batch")
print("Press 2 to view all students in a batch")
print("Press 3 to show all courses in a batch")
print("Press 4 to view performance of all students in a batch")
print("Press 5 to view pie chart of percentage all students in a batch")
print("Press 0 to return to main menu")
y = int(input("Enter yout choice: "))
if(y == 0):
break
elif(y == 1):
batch_name = input("Enter batch name: ")
createBatch(batch_name)
elif(y == 2):
batch_id = input("Enter batch ID: ")
viewStudents(batch_id)
elif(y == 3):
batch_id = input("Enter batch ID: ")
viewCourses(batch_id)
elif(y == 4):
batch_id = input("Enter batch ID: ")
viewPerformance(batch_id)
elif(y == 5):
batch_id = input("Enter batch ID: ")
pieChart(batch_id)
else:
print("Invalid input. Try again.")
elif(x == 4):
from department import *
while(True):
print("Press 1 to create a department")
print("Press 2 to view all betches in a department")
print("Press 3 to view average performance of all betches in a department")
print("Press 4 to view line plot of department statistics")
print("Press 0 to return to main menu")
y = int(input("Enter yout choice: "))
if(y == 0):
break
elif(y == 1):
department_id = input("Enter department ID: ")
department_name = input("Enter department name: ")
createDepartment(department_id, department_name)
elif(y == 2):
department_id = input("Enter department ID: ")
viewBatches(department_id)
elif(y == 3):
department_id = input("Enter department ID: ")
viewPerformanceD(department_id)
elif(y == 4):
department_id = input("Enter department ID: ")
linePlot(department_id)
else:
print("Invalid input. Try again.")
elif(x == 5):
from examination import *
while(True):
print("Press 1 to enter marks of all students for an exam")
print("Press 2 to view performance of all students in an exam")
print("Press 3 to show examination statistics as a scatter plot")
print("Press 0 to return to main menu")
y = int(input("Enter yout choice: "))
if(y == 0):
break
elif(y == 1):
course_id = input("Enter course ID: ")
enterMarks(course_id)
elif(y == 2):
course_id = input("Enter course ID: ")
viewPerformanceE(course_id)
elif(y == 3):
scatterPlot()
else:
print("Invalid input. Try again.")
else:
print("Invalid input. Try again.")
Footer