Question

Design a Candy Machine which takes Quarters, Dimes and Nickels for releasing a Candy which costs...

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

Homework Answers

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
CREATE USING A STATE DIAGRAM Design a Candy Machine which takes Quarters, Dimes and Nickels for...
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.
The machine accepts only quarters (25 cents) and dimes (10 cents). The output $1 food voucher...
The machine accepts only quarters (25 cents) and dimes (10 cents). The output $1 food voucher should be dispensed when the total coin amount reaches or exceeds 70 cents. If the amount exceeds 70 cents, the change should be applied as credit towards the next transaction, unless it equals 5 or 15 cents. For 5-cents change a nickel should be given back (dispensed); meanwhile a change of 15 cents should cause the machine to apply 10 cents towards the next...
Design a FSM for a Vending Machine In this task, you will design a FSM for...
Design a FSM for a Vending Machine In this task, you will design a FSM for a simple (albeit strange) vending machine of office supplies. The vending machine sells three possible items, each at a different cost: Item Cost Pencil 10 cents Eraser 20 cents Pen 30 cents The vending machines accepts nickels (worth 5 cents), dimes (worth 10 cents), and quarters (worth 25 cents). Physically, it is only possible to insert a single coin at a time. The vending...