CREATE USING A STATE DIAGRAM
Design a Candy Machine which takes Quarters, Dimes and Nickels for releasing a Candy which costs 40 cents and returns change.
• Input: Q(Quarter), D(Dime),N(Nickel)
• Output: Candy released
Candy should be coming out of the machine after receiving an amount greater than or equal to 40 cents.
Get Answers For Free
Most questions answered within 1 hours.