Difference: CSC122F2021Lab1 (1 vs. 2)

Revision 22021-07-20 - cathybareiss

Line: 1 to 1
 
META TOPICPARENT name="CSC122SylF2021"

Quizzing tool

Learning Objective(s)

Line: 8 to 8
 

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

Changed:
<
<
* 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
Line: 16 to 16
  * Ask all the questions getting the user's answers (storing their choices) * Score the quiz * Report the result
Changed:
<
<
  • 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

Revision 12021-07-20 - cathybareiss

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="CSC122SylF2021"

Quizzing tool

Learning Objective(s)

  1. Remember programming skills
  2. Demonstrate Java skills including use of arrays
  3. Provide an opportunity to demonstrate use of classes

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:
    • 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 * Get the name of the file from the user * 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
    • A method that asks all questions and return all answers given by the user
    • At least two additional methods

Optional improvements

Any/all of these can be added to your program for extra credit. But do not attempt them until your program (including the write up) is complete and receiving at least a 90%. Extra credit will only be given to those programs that receive at least a 90% on all the required work. It is much more important to do the required work well than to do the extra credit. Typically, extra credit work is also done on your own with limited (typically no) help from the instructor. The options are listed in order of importance. While you may implement any/all in any order, the order listed will focus you on the more important items first
  1. Have the questions be a class. This is an important skill to have and would be a requirement for the program except for the limited time to implement it.
  2. Have the multiple choices (and/or questions) be given in random order
  3. Allow the user to take the quiz multiple times until a certain level of success is reached
  4. Have the file be specified at the command line
  5. Use graphics
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback