Design a synchronous sequential circuit to control the operation of an automatic coffee machine. A cup of coffee costs 15cents and the machine has two input slots. In one slot Only 10cent coins can be inserted , in the the other only 5cent coins. The machine will give change in 5cent coins only, and only one such coin per transaction.
A)Draw a state diagram for the circuit
B)Assign States and draw a state transition table
C)Write a Verilog program to implement the circuit