Draw a sequence diagram to represent the scenario of “using vending machine to purchase drinks”. Four objects have been defined as follows. Add the following functions: (1) change when the customer pays more than the price of the purchased beverage; (2) return the customer's payment if the purchased beverage has been sold out, otherwise, it will be sold normally. Draw a complete sequence diagram showing the above functions.
Draw a sequence diagram to represent the scenario of “using vending machine to purchase drinks”. Four objects have been defined as follows. Add the following functions: (1) change when the customer pays more than the price of the purchased beverage; (2) return the customer's payment if the purchased beverage has been sold out, otherwise, it will be sold normally. Draw a complete sequence diagram showing the above functions.
Chapter7: User Creation And Management
Section: Chapter Questions
Problem 5HOA
Related questions
Question
Draw a sequence diagram to represent the scenario of “using vending machine to purchase drinks”. Four objects have been defined as follows. Add the following functions: (1) change when the customer pays more than the price of the purchased beverage; (2) return the customer's payment if the purchased beverage has been sold out, otherwise, it will be sold normally. Draw a complete sequence diagram showing the above functions.
![Customer
Front
Register
Dispenser](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F6c453286-206f-4b23-bff5-f633d46c86fe%2F41656a91-a617-4b50-a582-295f769ebe9b%2Fath1rnv_processed.png&w=3840&q=75)
Transcribed Image Text:Customer
Front
Register
Dispenser
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 2 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![Oracle 12c: SQL](https://www.bartleby.com/isbn_cover_images/9781305251038/9781305251038_smallCoverImage.gif)
![Principles of Information Systems (MindTap Course…](https://www.bartleby.com/isbn_cover_images/9781305971776/9781305971776_smallCoverImage.gif)
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781305971776
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
![Oracle 12c: SQL](https://www.bartleby.com/isbn_cover_images/9781305251038/9781305251038_smallCoverImage.gif)
![Principles of Information Systems (MindTap Course…](https://www.bartleby.com/isbn_cover_images/9781305971776/9781305971776_smallCoverImage.gif)
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781305971776
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
![Principles of Information Systems (MindTap Course…](https://www.bartleby.com/isbn_cover_images/9781285867168/9781285867168_smallCoverImage.gif)
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781285867168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
![Information Technology Project Management](https://www.bartleby.com/isbn_cover_images/9781337101356/9781337101356_smallCoverImage.jpg)
Information Technology Project Management
Computer Science
ISBN:
9781337101356
Author:
Kathy Schwalbe
Publisher:
Cengage Learning
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781305627482/9781305627482_smallCoverImage.gif)
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning