Draw a state machine diagram that represent the coffee machine as described below:
The initial state of the coffee machine when the power is up by worker is idle. When a customer insert coin, the state of the machine change to inserting coin. After the right amount of coin has been inserted, the state will be in making selection where customer can choose coffee and press the button start. During inserting coin and making selection, if the customer decides not to proceed, he/she can press a cancel button and the machine will become idle again. Once the start button is pushed the machine state is changed to make coffee. After the coffee is done, the machine will be idle again. If either cups or coffee is finish, the machine will change its state to need maintenance. After the maintenance has been done, worker will press a reset button and the machine will change to idle state. Finally, the machine will shut down when the worker power off the machine.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here