In this week's assignments, create a UML class diagram for the Zoo's information given below.
2.2 Zoo Lab Class Diagram: Directions
Using the previous lab class diagram as a starting point, add/remove classes (by "folding in" any fields as appropriate) such that the following classes (and their contents) are displayed:
MainWindow
Animal
BirthingRoom
Food
VendingMachine
Zoo
Enhance your existing UML class diagram (from the completed previous assignment) to include the following changes:
Add a class "Animal" with the following fields:
Age (int)
IsPregnant (bool)
Name (string)
Type (string)
Weight (double)
Add these fields to the existing BirthingRoom class:
Baby (Animal)
Mother (Animal)
Add a class "Food" with the following fields:
BestIfEatenBy (string)
Type (string)
Weight (double)
Add these fields to the existing VendingMachine class:
DingoFoodPortionWeight (double -- readonly)
PlatypusFoodPortionWeight (double -- readonly)
DingoFood (Food)
DingoFoodMaxStock (double)
DingoFoodPrice (decimal)
DingoFoodStock (double)
PlatypusFood (Food)
PlatypusFoodMaxStock (double)
PlatypusFoodPrice (decimal)
PlatypusFoodStock (double)
Using Violet, export the diagram to a .png file (File | Export to | Image file).