Question: Question.getAnswer() is an abstract method which should be overriden in the subclasses to return the correct answer of the question. Question.getCompleteQuestionText() which should return the
-
Question.getAnswer() is an abstract method which should be overriden in the subclasses to return the correct answer of the question.
-
Question.getCompleteQuestionText() which should return the question text along with the answer choices wherever applicable. This method should be overridden in the subclasses of the Question class, if necessary
-
Quiz.addQuestion(Question q, int score) should add the question q to the quiz with the given score.
-
Quiz.printQuizToFile() should print the complete question text (without the correct answers) of all the questions in the quiz to a text file whose name is
.txt in the format shown in the attached file Quiz1.txt. Use the PrintWriter class discussed during lecture. -
Quiz.printQuizSolutionToFile() should print the correct answer of all the questions in the quiz to a file whose name is
Soln.txt in the format shown in the attached file Quiz1Soln.txt. Use the PrintWriter class discussed during lecture. -
Create a graphical user interface for this application. You have the liberty to decide on the look of the graphical user interface except that the first screen should look like the screen shown below. When designing the GUI, pay attention to user-friendliness.
-
When the user clicks on Import Questions from File the system should show another screen which allows the user to enter the name of the text file that has the question details and then the system should add all the questions whose details are in that text file into the system. You should use the text file you created in Assignment 3.
Note that we may change the questions in the text file containing the questions to be imported when we are testing your code. However, we will follow the format that you have chosen for this file.
-
When the user clicks on View All Questions, the system should show another screen which shows all the questions in the format shown in the attached Questions.pdf file. The output does not have to be color coded.
-
When the user clicks on Create Quiz, it should allow the user to enter the quiz title, select questions, assign different scores for different questions and then create the quiz and add it to the system.
Once the user has added a question to a quiz, that question should no longer appear in the list of questions that can be added to the quiz.
The user should be able to see the questions already added to the quiz in the format used in Questions.pdf file.
You can decide on the details of this user interface.
-
When the user clicks on Print Quiz and Quiz Solutions, the user should be allowed to select the quiz title and print questions (without the answers) in this quiz to a text file
.txt in the format shown in attached Quiz1.txt and print its solutions to a text file called Soln.txt file in the format shown in the attached Quiz1Soln.txt file
-
-
Add a class called Main with the main method. The main method should do the following:
-
Create a object of type QuizMakerSystem
-
Display the first GUI screen
-
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
