Question 7:
Draw the relationships that are described by the following business rules. Include the multiplicities for each relationship.
1. A patient must be assigned to only one doctor, and a doctor can have one or many patients.
2. A movie theater shows at least one movie, and a movie can be shown at up to four other movie theaters around town.
3. A movie either has one star, two co-stars, or more than ten people starring together. A star must be in at least one movie.
Question 10:
Give one example of aggregation, generalization, and association relationships. How is each type of association depicted on a class diagram?
11. Identify the following operations as constructor, query, or update. Which operations would not need to be shown in the class rectangle?
Calculate employee raise (raise percent)
Calculate sick days ()
Increment number of employee vacation days ()
Locate employee name ()
Place request for vacation (vacation day)
Find employee address ()
Insert employee ()
Change employee address ()
Insert spouse ()