CSCI 201

Fall 2001

Assignment 4


Overview

You are given a JCreator project folder in the form of a self-extracting archive file as the starting point for this assignment. Download (right-click and select Save Target As ...) this link to access that archive file. When you extract the project folder (double-click on the archive file to extract it), you will find the following:

The purpose of this program is create an ASCII (i.e., text-based as opposed to graphics-based) version of a totem pole. Your totem pole must consist of four or more "heads" where each head is created from a combination of facial features. The Hair class is provided as an example of a facial feature.

Your Task

Your job is to complete the totem pole. To do so, you must implement the remaining facial features required to create a complete head, and then produce a totem pole that displays at least four different heads (i.e., each head must have different facial features).

The required facial features are:

Each facial feature must be implemented as a separate class, in other words, you are required to write four additional classes: Nose.java, Eyes.java, Mouth.java and Chin.java, as well as modify the Head and TotemPole classes. The Head class creates the facial feature objects (i.e., a Hair object, an Eye object, a Nose object, etc.) required for one complete head and causes them to draw in the proper order. The TotemPole class creates and draws multiple Head objects. Remember that each head in the totem pole must be unique, therefore the facial features that you create should allow for more than one configuration (see the Hair class as an example).

What to Turn In

Turn in the source code for all files used to create the totem pole:

Remember that the files you turn in must have exactly these names. You were shown how to transfer files to your class ftp directory in lab 1, here is a quick refresher.