Question: 1. Draw a class diagram, showing the relevant classes, attributes, and relationships for each of the following situations. (If you believe that you need to

1. Draw a class diagram, showing the relevant classes, attributes, and relationships for each of the following situations. (If you believe that you need to make additional assumptions, clearly state them for each situation): a. A company has a number of employees. The attributes of Employee include employeelD (primary key), name, address, and birth date. The company also has several projects. Attributes of Project include projectName and startDate. Each employee may be assigned to one or more projects, or may not be assigned to a project. A project must have at least one employee assigned, and it may have any number of employees assigned. An employee's billing rate may vary by project, and the company wishes to record the applicable billing rate for each employee when assigned to a particular project. b. A bank has three types of accounts: checking, savings, and loan. Following are the attributes for each type of account (Assume that each bank account must be a member of exactly one of these subtypes) : CHECKING: Acct_No, Date_Opened, Balance, Service_Charge SAVINGS: Acct_No, Date_Opened, Balance, Interest_Rate LOAN: Acct_No, Date_Opened, Balance, Interest_Rate, Payment c. Consider the classes involved when modeling a car and all its parts. Draw a domain model class diagram that shows the whole-part relationships involved, including multiplicity. Which type of whole-part relationships are involved
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
