Answered You can hire a professional tutor to get the answer.

QUESTION

A company consists of departments and employees. A department has responsibility for zero, one or more projects. A company has a name, an address and...

A company consists of departments and employees. A department has responsibility for

zero, one or more projects.

A company has a name, an address and a telephone number. A department has a name.

A project has a name. An employee has a name, an address, a social security number

(SSN) and is participating in zero, one or more projects. A project has a leader that is

an employee.

An employee is assigned to one or more departments in the company that he works

for. For each assignment a title (e.g. programmer), salary and extent is defined (e.g.

an employee can work 25% for one department and 75% % for another department, the

first assignment has extent 25 and the last 75).

1. Make a class diagram that captures the scenario. Let the class diagram show the classes with

attributes, relations (with role names) between the classes and multiplicity for the relations.

2. Explain the difference between a class and an interface in UML. Can interfaces have attributes?

Use an example to explain why or why not.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question