QBASIC Homework #2

PS 70

Dr. Zabinski


Name________________________________

Write a program to present its user with a trivia quiz. The program is to include the following features:

  1. Two multiple choice questions.
  2. Each question is to have 3 choices – A, B, & C.
  3. Each question appears on the screen as follows:
  4. This is question number ______.

    The actual question follows.

    Then the multiple choices.

    The user then responds.

  5. If the answer is correct the computer responds accordingly; otherwise the computer responds: NO, the correct answer is_____.
  6. The computer keeps track of the number of correct answers. At the end of the quiz the computer displays a final message such as:
  7. John, you answered _____ questions correctly.

    Do you want to take the quiz again (Y/N)?___


  8. Be sure the dialog on the screen is spaced well. i.e. reads well.
  9. At the beginning of the quiz include a "friendly" dialog such as:
  10. Hi, What is your name?___________

    Hi John I have a trivia quiz for you.

    Press any key when you are ready to start.

  11. Be sure to include the REM and CLS statements and place them properly in the program.

What you need to hand in:

  1. This sheet as a cover sheet.
  2. A listing of the program.
  3. Sample executions; one execution for each possible outcome, i.e., zero, one, and two correct answers.

Click here to go back to the main page