Question: Need help creating a Java IDE interface for trivia that takes in a file of questions. Create a simple trivia game that reads the questions

Need help creating a Java IDE interface for trivia that takes in a file of questions.

Create a simple trivia game that reads the questions for different categories from separate files. Each line of the file should contain the following information (choose an appropriate delimiter to separate):

The question to be asked

The possible choices for answering the question

The answer to the question

The point value for the question

You should read each question, answer, and point value into a TriviaQuestion class. There can be any number of questions in each file, therefore do not assume a specific number of questions.

The Trivia Game Interface

When the program starts, the first window that the player should see is for selecting a category of trivia questions. Selecting a category will load a second window and begin a trivia game with questions from the corresponding file for the selected category. Questions should be asked one at a time with up to 10 questions asked in a game and should be multiple choice with 4 possible choices for each question. Each answer should be displayed on a separate button. Questions are randomly selected from all the questions contained within the file. Each question should reuse the same window. In other words, do not create a new JFrame for each different question. During the game, you should show the following information:

Whether the user answered the question correctly.

How many questions are remaining

Total score up to that point in the game

When the game is over, present the user with the final score and the top ten high scores so far. The user should then be able to exit the program by hitting the Enter or Return key (you will need to listen for key presses). Many of the specifics of how this game looks are left up to you to decide. We are fully aware that most of you are not graphical designers, however some attention to usability is important. Primarily focus on how the different components are laid out on the screen so that it is easy for the user to understand what they are seeing.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!