Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CS 2 8 4 Software Modeling and Analysis Lab 6 _ Worksheet: Sequence Diagrams ( Part 1 ) Objective The objective of today's session is
CS Software Modeling and Analysis
LabWorksheet: Sequence Diagrams Part
Objective
The objective of today's session is to understand how to model the interactions between participants using Sequence Diagrams. Upon the completion of this session, you should be able to:
Define a sequence diagram
Model participants, time and messages
Use sequence diagrams to model a single scenario in a use case.
Exercise
Vending Machine.
A vending machine sells small, packaged, ready to eat items chocolate bars, cookies, candies, etc. Each item has a price and a name. A customer can buy an item, using a smart card issued by the vending machine company No other payment method ie cash, credit card are allowed. The vending machine has a smart card reader that updates the available amount of money on the smart card upon completing the sale process. Each time the customer enters the card, the card is validated for purchase, if it is valid, the process sale will be accomplished, otherwise the card and the process will be rejected.
The system supports the following functions:
Sell an item choose from a list of items, pay for an item, dispense an item
Recharge the machine with items
Monitor the machine number of sold items, number of sold items per type, total revenue
Set up the machine define sold items and price of items
The system can be used by a customer who buys itema maintenance employee who recharges and monitors the machines an administrator who sets up the machine
Use starUML to do the following:
Draw a Use Case Diagram that captures the functional requirements of the above System. Use appropriate relations to show the interactions that may occur between use cases and between actors and use cases.
Suppose you have a customer who wants to buy an item from a vending machine. Draw a Sequence Diagram to model the ordered interactions between participants.
Hint: your sequence diagram may include Customer, VendingMachine, SmartCardReader and Item as participants.
Page of
Draw a Class Diagram that shows the main classes in the above system along with the relationships that may occur between classes.do this at home
Use case diagram:
Sequence Diagram:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started