Case 11-1Sonja is using Java to create a program that draws graphics.Sonja has written the program so that the current version's color panel maintains an array of shapes, which violates the ____ division of responsibilities.
A. panel/array
B. model/view
C. object/array
D. subclass/superclass
Answer: B
You might also like to view...
Develop an application that computes a student’s average quiz score for all of the quiz scores entered. The application’s GUI should appear as in Fig. 14.17. Use method Integer.parseInt to convert the user input to an int, and assign that value to a double. [Note: Implicit conversion occurs when you assign an int value to a double.] Use instance variables to keep track of the sum of all the quiz scores entered and the number of quiz scores entered. Each time a score is submitted, your application should recalculate the average.
a) Copying the template to your working directory. Copy the C:Examples Tutorial14ExercisesQuizAverage directory to your C:SimplyJava directory.
b) Opening the template file. Open the QuizAverage.java file in your text editor.
c) Adding instance variables. At line 26, add two instance variables. The int instance variable quizzesTaken will keep track of the number of quiz scores entered. The double instance variable totalScore will keep track of the sum of all the quiz scores entered. These two variables will be used to calculate the class average. Add a com- ment before you declare the instance variables.
d) Adding code to the submitJButtonActionPerformed method. Find the sub- mitJButtonActionPerformed method (line 110) located just after method cre- ateUserInterface. The code required in Steps e–j should be placed in this method.
e) Obtaining user input. Use method Integer.parseInt to convert the user input from the quizJTextField to an int which should th
Case-Based Critical Thinking Questions Case 3-1 ? Maureen is planning a cruise for her family's upcoming reunion. She wants to e-mail images of the cruise ship to her siblings, who live in other parts of the country. She decides to use PowerPoint 2016 to create a quick presentation to share with them. Maureen is ready to e-mail her presentation. She can ____.
A. use an e-mail program to send her presentation B. send the presentation using Outlook from within PowerPoint C. Either a or b. D. Neither a nor b.
COGNITIVE ASSESSMENT What is an error in a program called?
A. a germ B. a bug C. an error D. a virus
What printer data type utilizes the ANSI standard to represent characters, numbers, and symbols?
A. RAW B. RAW (FF Auto) C. NT EMF D. TEXT