When running a slide show, pressing ________ will display all slides
A) D
B) G
C) F3
D) F6
B
You might also like to view...
The brightness and contrast of an image are changed in ____________________ percentage increments.
Fill in the blank(s) with the appropriate word(s).
Which of the following offer peer-to-peer payment services?
(a) eCash and PayPal. (b) eCash and Tradesafe. (c) PayPal and Tradesafe. (d) eCash, PayPal and Tradesafe.
Enhance the Flag Quiz application by counting the number of questions that were answered correctly. After all the questions have been answered, display a message in a JTextField that describes how well the user performed (Fig. 16.39). The JTextField, called commentJTextField, has already been added in the exercise template. The following table (Fig. 16.40) shows which messages to display:
a) Copying the template to your working directory. Copy the C:Examples Tutorial16ExercisesEnhancedFlagQuiz directory to your C:SimplyJava directory.
b) Opening the template file. Open the FlagQuiz.java file in your text editor.
c) Adding a variable to count the number of correct answers. On line 24, add a com- ment indicating that the variable you are about to create will be used to store the number of correct answers from the user. On line 25, declare int variable correct and initialize it to 0.
d) Counting the correct answers. On line 196, increment correct. This statement causes correct to be incremented each time a correct answer is submitted.
e) Displaying the message. Add a switch statement on lines 209–227 that displays the proper message in commentJTextField depending on the value of correct.
f) Saving the application. Save your modified source code file.
g) Opening the Command Prompt window and changing directories. Open the Com- mand Pro
Which of the following constructions is used as the basis for defining objects?
A. Method B. Class C. Property D. None of the above