CSSE 220 – Object-Oriented Software Development

Homework 6

Objectives

Practice creating, documenting, and testing classes based on a given public interface. More graphics and math practice.

Tasks

  1. Complete the assigned reading for the next session: Big Java Chapter 4.
  2. Complete the assessment exercise over this reading on ANGEL (under Lessons → Assignments).
  3. Programming:

    1. Mutchler's section only: Complete the SwingDemo1 project. (Boutell's section: you might find this project interesting, but you are NOT expected to do it.)
    2. The two sections have different instructions for the Faces project, as follows:

      • Boutell's section: Continue the Faces project by implementing rotations, as suggested by the picture below. In particular:
        • Make your Face constructor able to set the angle of the face in degrees (NOT radians).
        • Make your Face drawOn method draw the Face at its specified angle.
        • Implement your Face rotate method.

        Sample output of FacesComponent with faces rotated 30 degrees each
        Faces starting at 0° and rotated -30° for each successive face.

      • Mutchler's section: Work a reasonable amount (as discussed in class) toward the Faces project.

Turn-in Instructions

Turn in your programming work by committing it to your SVN repository.