Make Coffee (Process View Control Flow) (Nurin) - smashita/CoffeeMaker-2019 GitHub Wiki
Stated above is the control flow diagram for make coffee. It works as explained below
- User choose to make coffee.
- System will get the coffee name
- Then, user needs to pay
- If the amount of payment is less than the price, error message will be given and system will be terminated
- If the payment is more than or equal the price, system will get the ingredient at Inventory class
- If the ingredient is not enough, the payment made will be returned and system will be terminated
- If the ingredient is enough, amount of ingredient will be subtracted from system which indicates coffee will be make.
- If the payment is same as the coffee price, change will not be given
- If payment more then coffee price, change will be given
- System terminated.