Java Reference
In-Depth Information
9 Thinking Algorithmically
Take one of the following tasks and write a set of instructions that is
sufficiently complete so that another person could perform the task without
asking questions. Test your solution by giving it to another class member and
having him or her perform the steps. If a step in your task is dependent on a
condition, use the words if, then, and else to describe the criteria to be met for
that condition and the results. If steps in the task repeat, use the phrases do
while, do until, or do a certain number of times to describe the repetition. For
more information about conditions and repetitions, see Appendix A.
1. light a candle
2. make a cup of tea
3. send an e-mail
4. walk from the classroom to the bookstore
5. log on to your school's network or intranet
10 Identifying Triggers and Events
Figure 1-28 displays a user interface to calculate prices at a movie theater. Notice
there is no button labeled Calculate. Using your knowledge of graphical user
interfaces, list each object in the window, identify the trigger(s) to select the
objects, and then describe the output related to the event and its operations.
Hint : only one event trigger should cause the price to display.
FIGURE 1-28
J ava 2
Java 2
v 5 . 0
11 Understanding Java Components
v 5 . 0
Create a generalization hierarchy or class diagram of the various JDK
components in Java 2 Standard Edition (J2SE), version 5.0. Use information
from this chapter and information from the Sun Microsystems Java Web site
at java.sun.com. Include such components as the JRE, JVM, and API, among
others.
Search WWH ::




Custom Search