QuestionQuestion

Concepts:
• Inheritance
• Multiple Classes
• Generics
• Threads
• Java FX
• Database
• Data Structures
• Sorting

Programming Problem:

We are going to make a trivia game for the final project. The trivia game will have a user interface created by Java FX. 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 lock 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 0 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 10 players and their score. The generated list should be sorted from highest score to lowest score.

Solution PreviewSolution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

package application;

import java.io.FileNotFoundException;
import java.io.IOException;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class TriviaGame extends Application {

@Override
public void start(Stage stage) throws IOException {

AppUI appUI = new AppUI();
appUI.prompPlayerName();
stage.setTitle(AppConst.APP_TITLE);
stage.setScene(new Scene(appUI));
stage.sizeToScene();...

By purchasing this solution you'll be able to access the following files:
Solution.zip and Solution.jpg.

50% discount

Hours
Minutes
Seconds
$5.00 $2.50
for this solution

or FREE if you
register a new account!

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Java Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Decision:
Upload a file
Continue without uploading

SUBMIT YOUR HOMEWORK
We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats