Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Consider the model of a simple vending machine.The machine is initially in the ready state.If a customer deposits money, the machine moves to waiting state.At
Consider the model of a simple vending machine.The machine is initially in the "ready" state.If a customer deposits money, the machine moves to "waiting" state.At "waiting" state, if the customer selects a product, the machine moves to "dispense" state; otherwise, if the customer presses the cancel button, the machine moves to "refund" state,At "dispense" state, if the customer removes the product, the machine moves to "ready" state; At "refund" state, the machine does not require any inputs, and it moves to "ready" state;Any input signal not corresponding to one of the aforementioned transitions can either trigger an error or be ignored. Otherwise, the current state is updated and the process is repeated. Draw a state machine that models the above vending machine on a piece of paper, then answer the following question:If the vending machine is at the waiting state and the user continues to deposit money, what does the given vending machine doGroup of answer choicesThe vending machine moves to ready state.The vending machine updates the balance.The vending machine moves to the refund state.The vending machine may either trigger an error or ignore the deposit.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started