- 2072 Asoj · 5 marks
Coffee vending machine use case diagram
Short answer
Actors: Customer and Service Staff. Customer use cases: Order Coffee includes Select Recipe, Pay with Coins, Dispense Coffee; Give Change extends Pay with Coins. Service Staff use cases: Load Ingredients and Add Recipe.
For the case study given below identify all the actors, use cases and relationships also draw use case diagram. A coffee Vending Machine dispenses coffee to customers. Customers order coffee by selecting a recipe from a set of recipes. Customers pay for the coffee using coins. Change is given back if any to the customers. The Services staff loads ingredients (coffee powder, milk, sugar, water and chocolate) into the coffee machine. The service staff can also add a recipe by indicating the name of the coffee, the units of coffee powder, milk, sugar, water and chocolate to be added as well as the cost of the coffee.
Actors: Customer and Service Staff (both are primary actors).
Use cases
- Customer: Order Coffee, which includes Select Recipe (choose a recipe from the set of recipes), Pay with Coins and Dispense Coffee. Give Change extends Pay with Coins.
- Service Staff: Load Ingredients (coffee powder, milk, sugar, water, chocolate) and Add Recipe (name of the coffee, units of each ingredient, cost).
Relationships
Order CoffeeincludesSelect Recipe,Pay with CoinsandDispense Coffee.Give ChangeextendsPay with Coins. It happens only if the money inserted is more than the cost.Dispense Coffeechecks that enough ingredients are available.
+-----------------------------------+
| Coffee Vending Machine |
| |
[Customer] --|-( Order Coffee ) |
| |include |include |include |
| v v v |
|( Select ( Pay with ( Dispense |
| Recipe ) Coins ) Coffee ) |
| ^ |
| |extend |
| ( Give Change ) |
| |
[Service ] -|-( Load Ingredients ) |
[Staff ] -|-( Add Recipe ) |
+-----------------------------------+
| Element | Type |
|---|---|
| Customer | Primary actor |
| Service Staff | Primary actor |
| Order Coffee, Select Recipe, Pay with Coins, Dispense Coffee, Give Change | Customer use cases |
| Load Ingredients, Add Recipe | Service staff use cases |
| include / extend | Relationships between the use cases above |
✓ Answer checked by Claude Sonnet 5.5
Related questions
- External actors and library system sequence diagram · Object Oriented Analysis and Design, chapter 2
- XYZ Marina class diagram · Object Oriented Analysis and Design, chapter 2
- Math Training Institute use case diagram · Object Oriented Analysis and Design, chapter 2
- Collaboration and use case diagram case · Object Oriented Analysis and Design, chapter 2
- Importance of use case diagram · Object Oriented Analysis and Design, chapter 2
- Four class relationships from figure · Object Oriented Analysis and Design, chapter 2
- Case study: feasibility, drawbacks, convincing · Instrumentation II, chapter 10
- Case study: new system vs existing (cost, manpower) · Instrumentation II, chapter 10 · asked 4×
- Case study: current control and recommendation · Instrumentation II, chapter 10 · asked 3×
- Case study: processing plants and improvement · Instrumentation II, chapter 10 · asked 2×
All Object Oriented Analysis and Design chapter 2 questions →