| |
| META TOPICPARENT |
name="CSC122SylF2021" |
Quizzing tool
Learning Objective(s) |
| | Overview of the Challenge
Write a program that gives a multiple quiz to the user. The data associated with the quiz is stored in a text file. At the end of the quiz, inform the user as to the number of questions answered correctly.
Specifics |
|
< < | * The data file. The format of the data file is as follows: |
> > |
- The data file. The format of the data file is as follows:
|
| |
-
- First line is the number of questions in the file
- For each question: The first line of text is the question. The next four lines of text are the multiple choice options. The last line for the question is a number (1 through 4) indicated which of the multiple choices is correct
- Tasks
|
| | * Ask all the questions getting the user's answers (storing their choices)
* Score the quiz
* Report the result |
|
< < |
- Necessary components. Besides the list below there are other items that will be necessary to get the program to work. However the ones listed below must be found in your program or you will lose points
|
> > |
- Necessary components. Besides the list below there are other items that will be necessary to get the program to work. However the ones listed below must be found in your program or you will lose points
|
| |
-
- A method that asks all questions and return all answers given by the user
- At least two additional methods
Optional improvements |