Design a sequential circuit to control a gumball machine. Gumballs are 15 cents each. The machine accepts nickels (N) or dimes (D), but only one coin at a time.

computer science

Description

Design a sequential circuit to control a gumball machine. Gumballs are 15 cents each. The machine accepts nickels (N) or dimes (D), but only one coin at a time. When the appropriate amount of money has been provided, the machine should dispense a gumball (G). it should also give change (C) back to the person at the same time if necessary. Follow the sequential design procedures set out in the course. Implement and test this circuit using LogicWorks. Specifically, show what happens when a user inserts 2 dimes, and what happens when a user inserts 3 nickels. 

BONUS: add a button called "reject" (R) which will give back whatever money is in the machine at the current time. 


Related Questions in computer science category