10-152-311 - Object-Oriented Programming 1

5.2 Zoo Lab Class Diagram: Overview

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