



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
It is a modification of the program done in the recently uploaded documents
Typology: Exercises
1 / 7
This page cannot be seen from the preview
Don't miss anything!




Unit 7 Programming Assignment In this assignment, you will again modify your Quiz program from the previous assignment. You will replace the text based dialog boxes with button-based dialog boxes specialized for multiple- choice and true-false questions. This assignment uses many classes and methods described in Chapter 6 of Eck (201 9 ), and the instructions below include references to the relevant sections of Chapter 6. First, modify your main program for easier testing.
this.question.pack();
this.question = new QuestionDialog(); this.question.setLayout(new GridLayout(0,1)); his.question.add(new JLabel(" "+question+" ",JLabel.CENTER)); Note that you still need "this" to distinguish the "QuestionDialog" instance variable "question" from the String parameter "question".
You should not have any error warnings, and you should be able to run your program to ask all your previous questions, but with your new dialog boxes! Your assignment will be graded by your peers using the following criteria. Each item is worth 10 points, for a total of 90 points.