Question: Q 2 : A vending machine for cookies operates as follows. takes nickels ( 5 cents ) or dimes ( 1 0 cents ) .
Q: A vending machine for cookies operates as follows.
takes nickels cents or dimes cents
No changes are returned.
A cookie costs cents
input signal: a nickel inserteda dime inserteddispense button pressednot used
output signal: drops a cookienothing happens
Note: A cookie drops only when the dispense button is pressed AND the balance is cents or more. In addition, any remaining balance is forfeited no change is returned
a How many states are minimally needed? Answer:
b What is the definition meaning of each state?
Answer: Sno balance Sbalance balance balance
c Draw the state diagram. Answer: not provided.
d Construct the state table from c Answer: not provided.
e Derive state equations D flipflops and output from d Be sure to use Kmaps to find simplified equations. Answer: not provided.
f Draw logic diagram from e Answer: not provided.
Note: Drawing rulesguidelines of drawing logic diagrams:
On each gate, inputs are placed on the left side while outputs are placed on the right side
Connections lines should be straight lines, running either horizontally or vertically. That is the lines should not run diagonally or should not be in curve.
Two lines may cross. If connected, place a bullet at the crossing point. That is two crossing lines without a bullet mark at the crossing point mean two lines are not connected.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
