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

Design a vending machine controller that accepts quarters, loonies and toonies (

ID: 3597608 • Letter: D

Question

Design a vending machine controller that accepts quarters, loonies and toonies ($2 coins). When the value of the inserted coins equals to or exceeds $1.25, it must dispense the merchandise and any excess money as change.

Show the following steps:

specification, state transition diagram, state table, state table with state

assignments, truth table, minimized functions from the truth table, and a block diagram showing

the required number of D flip flops and input and output lines. You do not need to show the

implementation of the combinational circuit.

please show a detailed answer using truth table not K-map

Explanation / Answer

he vending machine will accept valid coins (nickels, dimes, and quarters) and reject invalid ones (pennies). When a valid coin is inserted the amount of the coin will be added to the current amount and the display will be updated. When there are no coins inserted, the machine displays INSERT COIN. Rejected coins are placed in the coin return.

NOTE: The temptation here will be to create Coin objects that know their value. However, this is not how a real vending machine works. Instead, it identifies coins by their weight and size and then assigns a value to what was inserted. You will need to do something similar. This can be simulated using strings, constants, enums, symbols, or something of that nature.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote