OOPortal
SiteMap
OO Analysis
Problem Analysis
Sequence Diagram
«Prev
Next»
OO-Design
Problem Analysis
Identify Classes Objects
Purpose Scope Analysis
Problem Domain Classes
Class Diagram Notation
Modeling Generalization
Sequence Diagrams
Modeling Sequences Scenarios
Sequence Diagram - Conclusion
Interaction Diagram - Quiz
Applying Sequence Diagram-Quiz
Model Reconciliation
Reconcile Sequence Diagrams
Test Interfaces
Class Diagram Not Enough
Model Refinement
Refactoring Patterns
Encapsulation Principles
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.
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
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.
Include your answers to the questions above in the Text field of your email.
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.
Submit