4 1 architecture and conceptual view by Sugganya - smashita/CoffeeMaker-2019 GitHub Wiki

1. Sequence Diagram for make coffee
Sequence Diagram for make coffee
Sequence Diagram for make coffee

To make coffee, system displays a list of all recipes than prompt user for selection of coffee. The system than prompt user for amount they want to pay. The system checks the amount to see if it is a positive amount if not ask user for a positive amount. If amount is positive system checks the amount to see if it is sufficient or not and displays the appropriate message “Insufficient funds to purchase.” or “Insufficient funds to purchase.” The system then tell the user the change.

2. Sequence Diagram for add recipe
Sequence Diagram for add recipe
Sequence Diagram for add recipe

To add a recipe, the system will prompt the user one-by-one for name, price and unit needed for coffee,milk,sugar and chocolate. The system will then tell the user whether the recipe was name + “successfully add” or name + “could not be added”

3. Overall use case for CoffeeMaker
Use case diagram for Coffee Maker
Use case diagram for Coffee Maker

The use case has 5 main use case, 8 extended use cases and 2 included use cases.Recipe book is a main use case with 4 extended use cases, which are add recipe, delete recipe, edit recipe, get recipe. Inventory is another main use case with 4 extend use case which are coffee, milk, sugar, chocolate. Inventory has 2 included use cases which are use ingredients and enough ingredients. Use ingredients is when the ingredients used to make a drink is minus from the total inventory. Enough ingredients is when the amount of coffee,milk,sugar and chocolate in inventory is calculated against the amount needed for the ordered drink and will state whether that is enough of each needed ingredient for that drink.

⚠️ **GitHub.com Fallback** ⚠️