Question: Download the Unit 7 Programming Assignment When you're finished, upload the following to the Programming Assignment submission area: Upload one document to the submission area

Download the Unit 7 Programming Assignment When you're finished, upload the following to the Programming Assignment submission area: Upload one document to the submission area that includes the following: QuestionDialog.java Question.java TrueFalseQuestion.java MultipleChoiceQuestion.java A screenshot showing a dialog box asking a true/false question A screenshot showing a dialog box asking a multiple-choice question Your assignment will be graded by your peers using the following criteria: Does the submission include a file "QuestionDialog.java" with a class that extends "JDialog" and implements "ActionListener"? Does the class "QuestionDialog" have a method "actionPerformed" that uses its "ActionEvent" parameter to set the instance variable "answer" and then calls the inherited "dispose" method? Does the submission include a file "Question.java" with a constructor that initializes instance variable "question", gives it a single-column grid layout, and adds a text label using the constructor's String parameter? Does class "Question" have a method "ask" that makes the instance variable "question" visible and returns the value "question.answer"? Does class "Question" have a method "initQuestionDialog" that makes instance variable "question" modal, sets its size with "pack", and positions it in the center of the screen? Does the class "TrueFalseQuestion" have a method "addButton" that constructs a button using its String parameter, adds the instance variable "question" as a listener for that button, and adds the button to its "JPanel" parameter? Does the class "TrueFalseQuestion" have a constructor that calls its superclass constructor with its first String parameter, calls "addButton" to add "TRUE" and "FALSE" buttons to a panel, adds that panel to the instance variable "question", calls "initQuestionDialog", and initializes the instance variable "correctAnswer" with its second String parameter? Does class "MultipleChoiceQuestion" have a method "addChoice" that creates a panel with a border layout, creates a button using its first String parameter, adds the instance variable "question" as a listener for that button, adds the button to the left side of the panel, adds a label to the center of the panel using its second String parameter, and adds the panel to the instance variable "question"? Does the class "MultpleChoiceQuestion" have a constructor that calls its superclass constructor with its first parameter, calls "addChoice" using its next five parameters, calls "initQuestionDialog", and initializes the instance variable "correctAnswer" with its last parameter?

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!