Trivia Game Assignment | Homework Help Websites
January 23rd, 2019
Description
There are two parts to the programming assignment.
- Design and create a Question class according to the class specifications below. The Question class will hold data for a trivia question.
- Write a script (on a separate file) that simulates a simple trivia game for two players.
Specification for Question class:
A Question object has a question or prompt and four possible answers, but only one of the answers is
correct – so basically, we are simulating a multiple-choice question.
Attributes
- A trivia question or prompt
- Possible answer 1
- Possible answer 2
- Possible answer 3.
- Possible answer 4
- The number of the correct answer (either 1, 2, 3, or 4)
Note: you could also label the possible answers with letters (e.g.: a, b, c, and d). Then the correct answer would be a value such as a, b, c, or d.