Sequence diagram of Make Coffee (Wong Xin Ying) - smashita/CoffeeMaker-2019 GitHub Wiki

Above is sequence diagram for use case of make coffee. :Main will display recipes list that get from aR:Recipe on screen for customer to select desired recipe. Users need to input selected number for recipe and amount to pay. If ingredients is enough for selected recipe, system will calculate the change of payment. If the payment is larger or equal to the amount paid, payment will be success. Otherwise, payment is failed.