
COP4331 and EEL4884 Quiz 2 Fall 2008
(90 Pts)
1. ( 24 pts) Model each of the following object or class relationships in UML. Do this by
filling in the blank with the name of the most appropriate relationship that applies you’re
your knowledge of software engineering augmented with common every-day experience;
the relationship should be predominate in your experience, it does not have to be true 100%
of the time. Then give a simple UML class diagram to illustrating the relationship. For each
part choose one of the following: composition, aggregation, affiliation, association,
generalization or specialization, instance-of. For example, the relationship between Quiz
and Question would be modeled as composition illustrated in the diagram below. Be sure to
include the multiplicity annotation and any roles that might apply.
(2 pts relation) (2 pts diagram)
(a) UML Diagram to Activity Diagram generalization-specialization
(b) Use Case Diagram to Actor Composition
(c) Room to Furniture Aggregation
(d) Parking Garage to Vehicle Aggregation
(e) Business to Employee Composition (give partial credit for association)
(f) University to Student Association (give partial credit for composition)
Page 1