Assignment #2

Due: Wednesday, February 13

Do the following exercises from Horstman:

  • Review exercises R3.8, R3.16, and R3.18 on p. 124-125.
  • Programming exercises P3.6, P3.10, and P3.12 on p. 127-129
Submit hard copy. The review (R) exercises may be just written out--although if you have any doubts you should check your answers on a machine. The programming (P) solutions should be printouts of your source code.
EXTRA CREDIT: Read Chapter 4 and write an applet that does something interesting. Submit it via email together with the .html file that displays it.

Here is a sample applet. Click the mouse to reposition the rectangle.

Sample Applet

The applet source is here. Use View Source on your browser to see the .html source. For another example of an applet click the eyeglasses at the bottom of the home page of this site.