Design a Candy Machine which takes Quarters, Dimes and Nickels for releasing a Candy which costs 40 cents. • Input: Q(Quarter), D(Dime),N(Nickel) • Output: Candy released
Notation: • Q=Quarters • D=Dimes • N=Nickels
Required Output: Candy should be coming out of the machine after receiving an amount greater than or equal to 40 cents.
make a state table and a state diagram for this question
Extra Credit: Extra credit will be given if you also return change along with candy
Get Answers For Free
Most questions answered within 1 hours.