-
Notifications
You must be signed in to change notification settings - Fork 0
/
SampleOutput.txt
340 lines (192 loc) · 4.13 KB
/
SampleOutput.txt
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
/*
OUTPUT
welcome() function
WELCOME TO QUIZ WORLD!
Created by Suvansh Dutta and Pranay Jain.
New to quiz world? Type 1 to sign up for free!
Existing user? Type 2 to login!
Type esc to exit.
*/
/*
OUTPUT
signup() function
CREATE A NEW ACCOUNT
Enter your full name: Suvansh Dutta
CREATE A NEW ACCOUNT
Enter a user ID: suvd21
CREATE A NEW ACCOUNT
Enter a password: ******
*/
/*
OUTPUT
login() function
LOG- IN
Enter your user ID: suvd21
Enter your password: ******
*/
/*
OUTPUT
rules() function
Welcome Suvansh Dutta!
RULES:
You can choose a quiz from five different topics.
There are 10 multiple-choice questions in each quiz.
You will have to choose the correct answer from 1, 2, 3 & 4.
Ten points will be awarded for each correct answer.
Three will be deducted for each incorrect answer.
If you want to exit the program at any point, press esc.
Press any key to continue . . .
*/
/*
OUTPUT
choose_cat() function
Choose one of the following categories:
1. Math
2. FIFA World Cup 2014
3. Vocabulary
4. Movies
5. Literature: Classic and Contemporary
*/
/*
OUTPUT
game() function (VOCABULARY)
Q 1. Parsimonious
1. Wasteful
2. Resentful
3. Stingy
4. Quarrelsome
Enter answer: 3
Correct!
Your score is: 10
Q 2. Apprise
1. Inform
2. Evaluate
3. Commit
4. Defy
Enter answer: 1
Correct!
Your score is: 20
Q 3. Articulate
1. Smooth
2. Strict
3. Well-spoken
4. Curious
Enter answer: 3
Correct!
Your score is: 30
Q 4. Farrago
1. Lecture
2. Crisis
3. Assortment
4. Tantrum
Enter answer: 2
Incorrect!
The correct answer is 3
Your score is: 27
Q 5. Fatuous
1. Sinister
2. Emotionless
3. Ridiculous
4. Enough
Enter answer: 2
Incorrect!
The correct answer is 3
Your score is: 24
Q 6. Callous
1. Noisy
2. Magical
3. Loyal
4. Insensitive
Enter answer: 4
Correct!
Your score is: 34
Q 7. Paucity
1. Shortage
2. Change
3. Journey
4. Loneliness
Enter answer: 1
Correct!
Your score is: 44
Q 8. Trifling
1. Direct
2. Unimportant
3. Ratty
4. Poetic
Enter answer: 1
Incorrect!
The correct answer is 2
Your score is: 41
Q 9. Assiduous
1. Foreign
2. Defective
3. Busy
4. Magnificent
Enter answer: 3
Correct!
Your score is: 51
Q 10. Ruminate
1. Produce
2. Think
3. Combine
4. Hold
Enter answer: 2
Correct!
Your score is: 61
(Final Score)
Congratulations!
Your final score is 61
Your high score is 61
LEADERBOARD
PLAYER NAME HIGH SCORE
1. User 2 74
2. Suvansh Dutta 61
3. User 1 47
Do you want to take another quiz?
Enter choice: n
*/
/*
OUTPUT
verify_admin() function
Enter Administrator ID: admin
Enter Administrator Password: *****
*/
/*
OUTPUT
admin() function
What do you want to do?
1. Add a new question.
2. View high scores of all users in a category.
To exit, press esc.
(Adding a new question)
Choose one of the following categories:
1. Math
2. FIFA World Cup 2014
3. Vocabulary
4. Movies
5. Literature: Classic and Contemporary
Enter a question: Who directed Psycho?
Enter correct answer: Alfred Hitchcock
Enter option 2: Steven Spielberg
Enter option 3: David Fincher
Enter option 4: Wes Craven
Do you want to continue?
Enter choice: n
Do you want to change the category?
Enter choice: n
(Viewing High Scores)
Choose one of the following categories:
1. Math
2. FIFA World Cup 2014
3. Vocabulary
4. Movies
5. Literature: Classic and Contemporary
(VOCABULARY)
LEADERBOARD
PLAYER NAME HIGH SCORE
1. User 2 74
2. Suvansh Dutta 61
3. User 1 47
Do you want to view the scores of another category?
Enter choice: n
*/