akosiraff

Download Trivia Game

Jul 27th, 2015
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1.  
  2. Download: http://solutionzip.com/downloads/trivia-game/
  3. Create a simple trivia game for two players. This program will work like this:
  4. Starting with player 1, each player gets a turn at answering five trivia questions. (There are a total of 10
  5. questions.) When a question is displayed, four possible answers are also displayed. Only one of the
  6. answers is correct, and if the player selects the correct answer he or she earns a point.
  7. After answers have been selected for all of the questions, the program displays the number of points
  8. earned by each player and declares the player with the highest number of points the winner.
  9. In this program you will design a Question class to hold the data for a trivia question. The Question class
  10. should have member variables for the following data:
  11. ? A trivia question
  12. ? Possible answer #1
  13. ? Possible answer #2
  14. ? Possible answer #3
  15. ? Possible answer #4
  16. ? The number of the correct answer (1, 2, 3, or 4)
  17. The Question class should have appropriate constructor(s), accessor, and mutator (getter and setter)
  18. functions.
  19. The program should create 10 Question objects, one for each trivia question. Make up your own trivia
  20. questions on the subject or subjects of your choice for the objects.
  21. Note: make sure to force valid input and use exception handling as necessary. Also, to the user, the user
  22. interface IS the program so make sure to use descriptive, detailed user interface to make the game
  23. professional. Here you go with my instructions.
  24. Download: http://solutionzip.com/downloads/trivia-game/
Add Comment
Please, Sign In to add comment