57Trivia App

Create a multiple-choice trivia application.

  • Read questions, answers, and distractors (wrong answers) from a file.

  • When a player starts a game

    • Choose questions at random.

    • Display the answer and distractors in a random order.

    • Track the number of correct answers.

    • End the game when the player selects a wrong answer.

Constraint

  • Write this file using a file database or local data file rather than a key-value store or a relational database.

Challenges

  • Add a difficulty field for the questions, and present increasingly difficult questions as the game progresses.

  • Expand the program by adding a mode that allows a parent or teacher to add, edit, or remove questions and answers.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.190.253.222