-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjavaoutput.java
More file actions
129 lines (129 loc) · 2.5 KB
/
Copy pathjavaoutput.java
File metadata and controls
129 lines (129 loc) · 2.5 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
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
Enter your username: myusername
Enter your password: mypassword
Registration successful!
Enter your username: user
Enter your password: pass123
Registration failed. Wrong username or password.
User Menu:
1. View All Exams
2. Check Result History
3. Take an Exam
4. Exit
Enter your choice: 1
Available Exams:
Math Exam
Science Exam
User Menu:
1. View All Exams
2. Check Result History
3. Take an Exam
4. Exit
Enter your choice: 3
Enter your username: User1
Select an Exam to Take:
1. Math Exam
2. Science Exam
1
Question: What's 2 + 2?
Your Answer: 5
Wrong!
Question: What's 5 - 3?
Your Answer: 2
Correct!
Exam done. Total Score: 1
User Menu:
1. View All Exams
2. Check Result History
3. Take an Exam
4. Exit
Enter your choice: 3
Enter your username: myuser
User not found.
User Menu:
1. View All Exams
2. Check Result History
3. Take an Exam
4. Exit
Enter your choice: 2
Enter your username: User2
Result History for User2:
Exam: Math Exam, Score: 78
User Menu:
1. View All Exams
2. Check Result History
3. Take an Exam
4. Exit
Enter your choice: 4
Exiting Exam System.
User Menu:
1. View All Exams
2. Check Result History
3. Take an Exam
4. Exit
Enter your choice: 3
Enter your username: User1
Select an Exam to Take:
1. Math Exam
2. Science Exam
2
Question: What's the chemical symbol for water?
Your Answer: H20
Wrong!
Question: What planet is known as the Red Planet?
Your Answer: mars
Wrong!
Exam done. Total Score: 0
Admin Panel:
1. Add User
2. Delete User
3. Add Exam
4. Add Question to Exam
5. Modify Correct Answer
6. Exit
Enter your choice: 1
Enter a username: javauser
Enter a password: pass123
User added successfully.
Admin Panel:
1. Add User
2. Delete User
3. Add Exam
4. Add Question to Exam
5. Modify Correct Answer
6. Exit
Enter your choice: 2
Enter username to delete: javauser
User deleted successfully.
Admin Panel:
1. Add User
2. Delete User
3. Add Exam
4. Add Question to Exam
5. Modify Correct Answer
6. Exit
Enter your choice: 3
Enter exam title: Social
Exam added successfully.
Admin Panel:
1. Add User
2. Delete User
3. Add Exam
4. Add Question to Exam
5. Modify Correct Answer
6. Exit
Enter your choice: 4
Enter the title of the exam to add a question to: Social
Enter the question: which is the tallest waterfall in the world
Enter the correct answer: Question added to the exam.
Enter your choice: 5
Enter the title of the exam to modify an answer in: history
Exam not found.
Admin Panel:
1. Add User
2. Delete User
3. Add Exam
4. Add Question to Exam
5. Modify Correct Answer
6. Exit
Enter your choice: 6
Exiting Admin Panel.