Question: Create an FSM that counts coins. Accept as inputs dimes (d) and quarters (q) only. Accept only one coin at a time (so d
Create an FSM that counts coins. Accept as inputs dimes (d) and quarters (q) only. Accept only one coin at a time (so d and q may be 0 at the same time but cannot be 1 at the same time). Count up to $0.50. Your FSM should have two outputs: e (enough) = 0 if the sum is < $0.50 and e = 1 if the sum is 2 $0.50; c (change) =0 if the sum < $0.50 and c = 1 if the sum is > $0.50. Once $0.50 or more is collected, return to the original state.
Step by Step Solution
3.34 Rating (160 Votes )
There are 3 Steps involved in it
Answer Explanation dime 10 cents quarter Ore Coin at a time It ... View full answer
Get step-by-step solutions from verified subject matter experts
