Question: Construct a finite - state machine that models a newspaper vending machine that accepts $ 5 , $ 1 0 and $ 2 0 coins.
Construct a finitestate machine that models a newspaper vending machine that accepts $ $ and $ coins. The machine has an automatic locking door D that is unlocked only after $ or more have been inserted. Once the door is unlocked the customer opens it and takes a paper, and closes the door. No change is ever returned no matter how much extra money has been inserted. The next customer starts with no credit. While the door has not been opened, the customer may press a red cancel button C to cancel the purchase and have all collected money returned.
By representing the finitestate machine as a state diagram,
Assuming:
There are No parallel edges ie where more than one transition occurs between two states and more than one edges could have been drawn a single edge is drawn and the multiple inputoutput labels are placed on that edge
Following from the previous point, there are No parallel loops ie where more than one transition occurs from a single state and more than one loops could have been drawn to the single state a single loop is drawn and the multiple inputoutput labels are placed on that loop
State the number of edges including loops to be seen within the state diagram where THE INPUT Section of the LABEL reflects or and THE OUTPUT Section of the LABEL reflects an output greater than n
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
