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, according to the course schedule.
  2. Complete the assessment exercise over this reading on ANGEL (under Lessons → Assignments).
  3. Programming:
    1. Continue the Faces project, as follows:
      • 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.

Turn-in Instructions

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