
Total Points: 100 points
Note: You need to put all your assignments (starting from Assignment #0) in the ITK 478 course H: drive so that if I need to verify any of the work, I'll have an electronic copy to do the verification with. Also, for all assignments, you need to turn in a hardcopy as well.
Due: 9/06/07 (class time)
A class hierarchy is a hierarchy that is formed based on the inheritance (is-a) relationship of classes. Below is an example of a class hierarchy representing Material Objects [Budd 2000]. (Note that in the example below, each indentation represents an is-a relationship. For example, Carnation is-a Flower, Flower in turn is-a Plant, and Plant in turn is-a Material Object.)
Material Object
Animal
Mammal
Dog
Human
Shopkeeper
Florist
Artist
Potter
Dentist
Platypus
Plant
Flower
Carnation
In this question, you are asked to provide a class
hierarchy for two (choose any two) of the following:
You need to provide approximately 10 classes for each of
the hierarchies. Also, for each of the hierarchies, pick 5 classes (not all of
which are direct descendents of the highest level superclass (i.e.,
Transportation and ReadingMaterials)) and briefly describe the characteristics of the
classes. For example, in the Material Object hierarchy above, some of the
classes can be described as follows [Budd 2000].
| * A Material Object has mass and weight (and thus all its descendent classes have these properties) | |
| * An Animal object breathes oxygen (...) | |
| * A Mammal object nurses its young and has hair (...) | |
| * etc. |
For Questions 2-4 below, consider the following organization chart for a university system and the Employee table given below.

Employee (SSN, Name, Salary, Title, SupervisorNumber) Note: SSN and SupervisorNumber are defined on the same domain and one represents a foreign key to the other. (You should know which is which!)

Note: The arrow (-->) signifies that the entity being pointed to is uniquely identified in the relationship. For example, in the FatherOf relationship, the father of a child is uniquely identified. The line (--) in a relationship indicates that the connected entity can be multiply associated with the other entity. Here, a father can have any number of children in the FatherOf relationship.
(a) [9 pts] Map the above ER model to a relational schema (i.e., a set of tables) using each of the three approaches discussed in class. You should have three separate schemas as a result of this question.
(b) [6 pts] Assume that you are to convert the above ER model to an OO model. Your job here is to add methods (at least 2) to each of the 4 entities. You simply need to write the method name and describe (using 1-2 sentences) the purpose of the method.