Lab 5 - Service Job (when a car is serviced). Add relevant...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Lab 05 Answer Key 1. Use a use-case narrative you created in Lab 4 to create a class diagram. Answers will vary. 2. Duplicate in Visio the enrollment class diagram shown above. Based on your knowledge of enrolling in college classes, add other attributes and class objects. Answers will vary. One solution is shown below. -SectionID -Semester -MeetingTimes Section -StudentID -StudentName -Major Student -StaffID -Name -Title Professor -Username -Password -Registrar User 0..* 1..* teaches 0..* 0..* enrolls in is a is a -ClassID -ClassName -Credit -CatalogDesc Class -DeptID Department 0..* 1 offered as 1..* 1 ofers -PlanCode PlanOfStudy 1..* 1 employss 1 1..* offers 0..* 0..* enrolls in
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
3. Draw a Visio class diagram for the auto dealership class objects used earlier in the chapter: Employee, Mechanic, Salesperson, and Car. Revise the diagram with the following additional class objects: Customer, Prospective Customer, Car Sale, and
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Service Job (when a car is serviced). Add relevant attributes to the new class objects and establish relationships among the class objects. Make assumptions where necessary. Answers will vary. One solution is shown below.-Lastname : String-Firstname : String-Telephone : String Employee-Certification : String-HrlyWage : Decimal Mechanic-BaseSalary : Decimal-CommisionRate : Double Salesperson is a is a-Make : String-Model : String-Engine : String-Price : Decimal Car 1 0..* sells-FirstPurchDate : Date Customer-Lastname : String-Firstname : String-Telephone : String Prospective Customer-SaleDate-SalePrice Car Sale-ServiceDate-WorkDescription Service Job 0..1 1 sold as is a 0..1 0..* purchases 1 0..* performed on 1..* 0..* works on...
View Full Document

Page1 / 2

Lab 5 - Service Job (when a car is serviced). Add relevant...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online