Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please solve the Finite State Machine problem You have been enlisted to design a

ID: 3558163 • Letter: P

Question

Please solve the Finite State Machine problem

You have been enlisted to design a soda machine dispenser for your department lounge. Sodas cost only 25 cents. The machine accepts nickels, dimes and quarters. When enough coins have been inserted, it dispenses the soda and returns any necessary change. Design an Finite State Machine controller for the soda machine. The Finite State Machine inputs are Nickel, Dime and Quarter, indicating which coin was inserted. Assume that exactly one coin is inserted on each cycle. The outputs are Dispense, ReturnNickel, ReturnDime and ReturnTwoDimes. When the FSM reaches 25 cents, it asserts Dispense and the necessary Return outputs required to deliver the appropriate change.ffhen it should be ready to start accepting coins for another soda.

Explanation / Answer

Solution: