[Solved]Java Program Input File Contain First Line Question Objects Two Separated Space Second Lin Q37232730
Java program


The input file will contain on the first line the questionobjects (two of them) separated by a space. The second line willhave the four answer choices (separated by space). The first answerchoice is always the correct one. However, they should not be thefirst choice in the program for every turn. There are 20 linestotal in the input.txt file.
input file content
5.0 4
9.0 9 5 25
5.0 4.0
9 9.0 25 5
Mickey Mouse
MickeyMouse null error MouseMickey
c a
error ca 4 25
8 8
16 15 14 11
4.5f 3.6f
8.1f 2 8.1 6
Java Program
JavaProgram javaprogram Javaprogram javaProgram
2.3f 4
6.3f 6.3 4 2
Mary Lamb
MaryLamb little lamb cool
6 5
11 12 13 14
We are going to make a trivia game for the final project. The trivia game will have a user interface created by Java FX. This interface will look like the picture below Appendix A). The game will start out asking you to enter your name. Then the game will produce two objects that are being added together. The buttons below the objects are the possible answers. The objects that are being added together and the possible answers will be read from a file that I give you. The file will contain integers, doubles and Strings. So, the class that handles this file will have to be generic to handle every form of datatype. You have to select one of the answers before 5 seconds. After 5 seconds the answers k and the game produce two different objects that are being added together with different possible answers. To keep track of time, there will be a countdown clock available. The game runs for 10 questions. After that the points are totaled. Each question is worth 1 point. You get O points for a wrong answer. When each answer is selected during the game, the timestamp and points for that question should be placed on a stack. Once the game ends, then the stack gets popped and shows the timestamp and points for each question. The user name and total score should be stored on a database. When clicking “generate report” a file should be produced showing the last 0 players and their score. The generated list should be sorted from highest score to lowest score. Appendix A Name Area Points Total Countdown Clock Object 1 Object 2 imestamp Answers area on this row Choice 2 Choice 3 Choice4 Generate Report Show transcribed image text We are going to make a trivia game for the final project. The trivia game will have a user interface created by Java FX. This interface will look like the picture below Appendix A). The game will start out asking you to enter your name. Then the game will produce two objects that are being added together. The buttons below the objects are the possible answers. The objects that are being added together and the possible answers will be read from a file that I give you. The file will contain integers, doubles and Strings. So, the class that handles this file will have to be generic to handle every form of datatype. You have to select one of the answers before 5 seconds. After 5 seconds the answers k and the game produce two different objects that are being added together with different possible answers. To keep track of time, there will be a countdown clock available. The game runs for 10 questions. After that the points are totaled. Each question is worth 1 point. You get O points for a wrong answer. When each answer is selected during the game, the timestamp and points for that question should be placed on a stack. Once the game ends, then the stack gets popped and shows the timestamp and points for each question. The user name and total score should be stored on a database. When clicking “generate report” a file should be produced showing the last 0 players and their score. The generated list should be sorted from highest score to lowest score.
Appendix A Name Area Points Total Countdown Clock Object 1 Object 2 imestamp Answers area on this row Choice 2 Choice 3 Choice4 Generate Report
Expert Answer
Answer to Java program The input file will contain on the first line the question objects (two of them) separated by a space. The … . . .
OR

