CSSE 220 – Object-Oriented Software Development

Homework 5

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. Complete 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.

    2. Because of the typo on homework 3, we extended the deadline on WordGames. Be sure to complete it if you haven't already.

Turn-in Instructions

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