Design a logic circuit to implement the candy machine control unit designed in Example 8.18. Use 1K flip-flops.
Example 8.18:
Let us design a control unit for a simple coin-operated candy machine. Candy costs 20 cents, and the machine accepts nickels and dimes. Change should be returned if more than 20 cents is deposited. No more than 25 cents can be deposited on a single purchase: therefore. the maximum change is one nickel.