Sequence Diagram   «Prev  Next»

Discovering Attributes - Exercise


Course project: extend a sequence diagram


Objective: Extend a sequence diagram to add data sources.

Exercise scoring

This exercise is worth 10 points.

Background/overview

This is the eighth exercise in the course project.

Download files

Click the link below to download the file you will need to complete this exercise.
Module 3 Lesson 7 - Download

Instructions

View the Image below to review the initial sequence diagram for this exercise.
Initial Sequence Diagram for Exercise consisting of 1) Customer, 2) Purchase, 3) ShowSeat, 4) Ticket, and 5) PriceTier.
Initial Sequence Diagram for Exercise consisting of 1) Customer, 2) Purchase, 3) ShowSeat, 4) Ticket, and 5) PriceTier.

Task 1: Find a new parameter and its source.
Problem: The ticket has to print the location of the seat.
Goal: Find out which object owns the seat location and get it. Update the sequence diagram accordingly.
Task 2: Find a new return value and its source.
Problem: The purchase requires a discount value.
Goal: Find out which object owns the discount value and get it.
(To simplify the solution, assume that the total number of tickets and their value have been computed by the Purchase object and are ready to be used as parameter values when the discount is needed.)
Update the sequence diagram accordingly.

Submitting your exercise

To submit the exercise, follow the steps below:
Step 1
  1. In the Subject field, type OOA 2- Course project, part 2- Module 3
    Presnet this specific text in the Subject field to match the exercise to the person who created it.
  2. Include your answers to the questions above in the Text field of your email.
  3. Attach your file. Make sure your file is named discovering-attributes-exercise.gif
    Each email program has a slightly different way of attaching files. Please check your program's documentation for full instructions.
Step 2
In the text area below, type Course project, part 2. In addition, you can include any questions or comments you have about the exercise.
When you are ready to submit the exercise, click the Submit button.