[Solved]Java Project Text Menu Trivia Game Project Implement Trivia Game Ask Random Trivia Questio Q37287100
Java Project: Text Menu Trivia Game
In this project you will implement a trivia game. It will askrandom
trivia questions, evaluate their answers and keep score. Theproject
will also have an administrative module that will allow formanaging
the question bank. Question bank management will includeadding
new questions, deleting questions and displaying all of thequestions,
answers and point values.
2. The project can be a GUI or a menu based command lineprogram.
3. Project details
1. Create a class to administer the question bank with thefollowing
functionality:
1. Stores question data in a text File (See details of file
structure below)
2. Enter new questions including answer and question point
value. Point value should be 1 to 5.
3. Delete questions by searching for a question in the text
file. Assign a question id number to each question using a
static variable.
4. Display all of the questions, associated answers andpoint
value.
5. The question bank must be stored in a text file with
structure of:
1. Questions ID Number
2. Question
3. Answer
4. Question point value.
5. see questions.dat for a sample.
6. For the purposes of this project the question bank will
contain at least 15 questions.
7. This class may be a separately run or part of the program
that runs the trivia game.
2. Create a class for the players information with thefollowing
functionality
1. Player’s real name
2. Player’s gamer nick name
3. Current total score. Total score is a summation of allthe
Player’s game sessions.
3. Create a class for questions including
1. question, answer, value and a question ID
2. Accessor methods to return all instance fields.
4. Create a class for the trivia game with the followingfunctionality.
1. Stores a collection of Question objects.
2. Using random number generation to read 5 questions from
the question bank and stores them in the collection.
Remember the questions are stored in three rows,
questions, answer and score.
3. Returns the next question object in the collection.
4. Evaluate the answer and returns the outcome. The
evaluation should ignore case.
5. Create a class to run the game
1. GUI or menu based command line.
2. Create a new user object and ask for required user
information (name, nick name)
3. Create trivia game object
4. Start the game, the game sequence is
1. Display a question
2. Prompt for an answer
3. Evaluate the answer
4. Display the evaluation results
5. Update the users total score
6. Display the user current game score.
7. Continue to display new questions until current game
is over. (5 questions)
8. Once game is over, allow user to play again or quit
9. If user quit – Display his nick name, current game
score and total score.
6. Programmer Design information
1. As you may have noticed much of the details for this
project are left up to you.
2. You may create any additional classes, methods(especially
private utility methods) or instance fields you think may be
needed, however you will be graded on good object
oriented design, so points will be taken off for unnecessary
classes, methods or unused instance fields or instance
fields that should be local variables.
3. There is no need to add any additional functionality such
as checking for duplicate questions, or duplicate user files
etc, just focus on the required functionality.
Expert Answer
Answer to Java Project: Text Menu Trivia Game In this project you will implement a trivia game. It will ask random trivia question… . . .
OR

