
10-152-311 - Object-Oriented Programming 1
5.2 Zoo Lab Class Diagram: Overview
- Modify the Violet UML class diagram contained withing this 5.2 Zoo Class Diagram starting zip file, following these specifications:
- Add the following methods:
- Public Zoo.AddEmployee(); must take a parameter of employee (Employee).
- Public Zoo.FindEmployee(); must take a parameter of name (string); must return an Employee.
- Add the following (public) properties:
- Restroom.IsOccupied (bool; read/write).
- Guest.Age (int; read-only).
- Guest.Name (string; read-only).
- BirthingRoom.Temperture (double; read/write).
- BirthingRoom.Vet (Employee; read/write).
- Employee.AnimalDeliveryCount (int; read-only).
- Employee.Name (string; read-only).
- Employee.Number (int; read-only).
- Animal.Age (int; read-only).
- Animal.IsPregnant (bool; read-only).
- Animal.Name (string; read-only).
- Animal.Type (string; read-only).
- Animal.Weight (double; read-only).
- Zoo.AverageAnimalWeight (double; read-only).
- Zoo.BirthingRoom (double; read/write).
- Zoo.TotalAnimalWeight (double; read-only).
- Remove the following class members:
- Zoo.averageAnimalWeight.
- Zoo.totalAnimalWeight.
- Zoo.CalculateAnimalWeight().
- Using Violet, export the diagram to a .png file (File, Export to | Image file).
- Submit the file via Blackboard.