Team LiB
Previous Section Next Section

Exercises

  1. Prepare a sequence diagram for Scenario #2 as presented earlier in this chapter.

  2. Prepare a sequence diagram to represent the following scenario for the SRS case study:

    • Mary, a student, logs on to the SRS.

    • She indicates that she wishes to drop ART 222, Section 1.

    • ART 222, Section 1 is removed from Mary's course load.

    • The system determines that Joe, another student, is waitlisted for this section.

    • The section is added to Joe's current course load.

    • An email is sent to Joe notifying him that ART 222 has been added to his course load.

  3. Provide a list of all of the method headers that you would add to each of your classes based on the sequence diagram that you prepared for exercise 2. Also, note any new classes, attributes, or relationships that would be needed.

  4. Prepare a second sequence diagram for the SRS case study, representing a scenario of your own choosing based upon any of the SRS use cases identified in Chapter 9. This scenario should be significantly different from those presented in this chapter and from the scenario in exercise 2. You must also narrate the scenario as was done for exercise 2.

  5. Provide a list of all of the method headers that you would add to each of your classes based on the sequence diagram that you prepared for exercise 4. Also, note any new classes, attributes, or relationships that would be needed.

  6. Prepare a sequence diagram to represent the following scenario for the Prescription Tracking System (PTS) case study presented in Appendix B:

    • Mary Jones, an existing customer of the pharmacy, brings in a prescription for eye drops to have it filled.

    • The pharmacist checks to see if Ms. Jones has previously had a prescription filled for this item.

    • He discovers that she has, and furthermore that the last time it was refilled was less than a month ago.

    • Knowing that her insurance won't authorize payment for this same prescription so soon, the pharmacist informs Ms. Jones, and she decides to wait to have it filled at a later date.

  7. Devise an "interesting" scenario, and prepare the corresponding sequence diagram, for the problem area whose requirements you defined for exercise 3 in Chapter 2.

  8. Provide a list of all of the method headers that you would add to each of your classes based on the sequence diagram that you prepared for exercise 7. Also, note any new classes, attributes, or relationships that would be needed.


Team LiB
Previous Section Next Section