Question: Please resolve quickly CS284 Software Modeling and Analysis Lab5_Worksheet: Class Diagrams (Part 2) Objective The objective of today's session is to understand how to model


Please resolve quickly
CS284 Software Modeling and Analysis Lab5_Worksheet: Class Diagrams (Part 2) Objective The objective of today's session is to understand how to model relationships in class diagrams. Upon the completion of this session, you should be able to use the UML to: Model dependency relationship Model association relationships Model generalization relationship . Exercise 1: Given the following class diagram, specify the type of relationships between classes and provide appropriate multiplicity for each relation where possible. Electrical Company 4 Kitchen 5 2 Person House Bath Room Bedroom MailBox Page 1 of 2 1) 2) 3) 4) 5) Exercise 2: Take the description of your average PC hardware below and draw a class diagram that captures the different classes of hardware components and the relationships between those classes. PC hardware list: . Base Station (Tower); Keyboard; . . Combined CD and DVD Recorder; . Motherboard; Screen; . Mouse. . The relationships between these parts are as follows: The Base Station contains the Motherboard; The Base Station also contains a combined CD and DVD Recorder (Superdrive); The Base station is connected to a Keyboard, a Screen and to a Mouse. . . Exercise 3: . Define a class diagram for a university. In a university there are different classrooms, offices and departments. A department has a name and it contains many offices. A person working at the university has a unique ID and can be a professor or an employee. A professor can be a full, associate or assistant professor and he/she is enrolled in one department Offices and classrooms have a number ID, and a classroom has a number of seats. Every Employee works in an office. Page 2 of 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
