ER And Class Diagrams
Creation of an Entity-Relationship Diagram and a Class Diagram
Assume that you have to create a data model for a system that stores information about cars and their owners. A car has attributes such as its model, make, and year of manufacturing. The owner has attributes such as name and address. Assume that a car owner can own many cars, but a car can have only one owner. An owner has recently sold off a car and owns no car at this point in time. This information is also present in the system. If you have not done so already, use this link to download and install the latest stable release (non-beta) of Java SE 6 JDK. If you are using Windows and are not sure whether you need the 32- or 64-bit version, refer to Microsoft's help and support. Then use this link to download and run the Violet UML editor.
Perform the following tasks:
1. Create an ERD for a system that stores information about the cars and owners. Perform the following steps:
a.
Use Word to create an ERD that contains Car and Owner entities.
b.
Add the details for Car and Owner entities.
c.
Add the relationship between Car and Owner entities.
2. Take a screen shot of the ERD diagram and paste it into a Word document as evidence of having completed this task. Label it correctly to avoid confusion.
3. Create a class diagram for the same system. Perform the following steps:
a.
Run the Violet UML editor.
b.
Select the Class Diagram option.
c.
Select the Class Diagram Tool option from the Diagram Tool menu.
d.
Click on the grid area to create a rectangle for a new class.
e.
Create classes for the car and its owner.
f.
Create subclasses of the Car class for SportsCar, Sedan, and Minivan.
4. Take a screen shot of the UML class diagram and paste it into the Word document as evidence of having completed this task. Label it correctly to avoid confusion.
5. Write a paragraph of 150–200 words describing the features you liked and disliked in each diagram. State which diagram you prefer using and justify your preference.
6. Submit a 2- to 3-page document containing the screen shots of the ERD and the UML class diagram and a paragraph describing the features of each diagram that you liked and disliked, your preferred diagram, and the justification of your preference.