Question: Main.java will launch the application and shown the Main.fxml . MainController.java will need to implement the EventHandler interface, and handle any events that occur when
Main.java will launch the application and shown the Main.fxml. MainController.java will need to implement the EventHandler interface, and handle any events that occur when the user interacts with Main.fxml. When the app launches, the MainController will call on the Quiz class to provide a question and a set of answers to be displayed on Main.fxml. If the user answers correctly, MainController should modify Main.fxml to show positive feedback (green). Likewise, if the user answers incorrectly, the MainController should modify Main.fxml to show negative feedback (red).
Questions & Answers
Don't panic, you won't have to construct the quizzes for your application - they are provided for you here: quiz.csv Place this file at the top of your Eclipse project (drag and drop it into your project, select "copy files" if it asks). A sample of the data format is as follows: What type of language is Java?,Object-oriented,Functional,Mark-up,Klingon Which of the following is not a primitive type in Java?,String,int,float,boolean From this sample, you can see that each line is a separate question in your quiz. The file is a .csv file, so it is comma delimited, and should be parsed. The first token in the line is the question, and each subsequent token is an answer. The correct answer is always the first.
Quiz
Quiz.java will be the model of this application. The class must have variables to save questions (Strings) and answers (Strings) for the entire quiz - that is, all questions. This class should use at least one ArrayList. As the model, this class is responsible for reading data from the csv file provided, parsing that data, and storing it in its variables. Additionally, this class must have public methods which the MainController can call in order to access the data. The MainController should request one question at a time from the Quiz model, so that one question can be provided to the user at a time.
| What type of language is Java? | Object-oriented | Functional | Mark-up | Klingon | |
| Which of the following is not a primitive type in Java? | String | int | float | boolean | |
| Which SOLID design principle recommends that a class have only one job? | SRP | OCP | LSP | DIP | |
| Who initially designed the Java programming language? | James Gosling | Ryan Gosling | Ryan Reynolds | Stan Lee | |
| When was Java initially released? | 1995 | 1990 | 1975 | 2000 | |
| What does JDK stand for? | Java Development Kit | Java Download Kit | Java Developer Kids | Just Don't Know | |
The quiz.csv I listed in the last photo please help!!! And above! This needs to be in the quiz.
I would like this done asap by the end of today please!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
