10-152-311 - Object-Oriented Programming 1

5.2 Zoo Lab Sequence Diagram: Overview

  1. Create a UML sequence diagram in Violet following these specifications:
    1. The MainWindow has a method findFredAgeButton_Click().
    2. The MainWindow has a nested object, comoZoo (Zoo).
    3. The button click method calls comoZoo.FindGuest(). It takes a parameter of name (string). It returns a Guest which will be stored in a fred variable.
    4. comoZoo's FindGuest() method interacts with a nested object g (Guest).
    5. comoZoo's FindGuest() method gets the value of the Name (string) property from the nested g object.
    6. The button click method gets the Age (int) property of the fred (Guest) object.
  2. Using Violet, export the diagram to a .png file (File, Export to | Image file).
  3. Submit the file via Blackboard.