This problem set covers Chapter 1.

  1. Add Two Numbers (5 points)

    Problem 1.1 (p 41): Enter the program in Listing 1.1, Name the program MyFirstProgram. Compile and run the program.

  • Snowman (5 points)

    Problem 1.6 (p 42): Write an applet program similar to Listing 1.2 that displays a picture of a snowman.
    Hint: Draw three circles, one above the other. Make the circles progressively smaller from bottom to top. Make the top circle a happy face. Give the snowman some buttons.

  • Olympics (5 points)

    Problem 1.7 (p 42): Write an applet program similar to Listing 1.2 that displays the five interlocking rings that are the symbol of the Olympics. (Don't worry about the color.)