Design a Coffee Vending Machine that accepts two inputs: D for dirhams, and F for fils....
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Design a Coffee Vending Machine that accepts two inputs: D for dirhams, and F for fils. Assume that the machine only accepts dirhams and 50 fils and that coins are inserted one by one. The machine does not give back money change so the buyer must insert the exact amount. For simplicity, assume that all coffee drinks are sold with the same price 1.5 dirhams. Coffee will be dispensed only when the 1.5 dirhams are inserted and the coffee drink C is pressed. Use D-flip flops (below is its corresponding table). Q(t) Q(t+1) D 0 0 0 11 0 1 1 0 0 1 1 1 a) How many memory states are required for the state diagram? (Note: states are based on coin insertion). Draw the state diagram. b) Draw the transition table. c) Is it Moore or Mealy Machine implementation. d) Write the expressions for the next states and the output y. e) Minimize the logic using K-maps. f) Draw the circuit implementation using D-flip flops and other logic gates if needed. Design a Coffee Vending Machine that accepts two inputs: D for dirhams, and F for fils. Assume that the machine only accepts dirhams and 50 fils and that coins are inserted one by one. The machine does not give back money change so the buyer must insert the exact amount. For simplicity, assume that all coffee drinks are sold with the same price 1.5 dirhams. Coffee will be dispensed only when the 1.5 dirhams are inserted and the coffee drink C is pressed. Use D-flip flops (below is its corresponding table). Q(t) Q(t+1) D 0 0 0 11 0 1 1 0 0 1 1 1 a) How many memory states are required for the state diagram? (Note: states are based on coin insertion). Draw the state diagram. b) Draw the transition table. c) Is it Moore or Mealy Machine implementation. d) Write the expressions for the next states and the output y. e) Minimize the logic using K-maps. f) Draw the circuit implementation using D-flip flops and other logic gates if needed.
Expert Answer:
Answer rating: 100% (QA)
Here is a stepbystep explanation of the design process a How many memory states are required for the state diagram Note states are based on coin insertion Draw the state diagram The number of memory s... View the full answer
Related Book For
Digital Design and Computer Architecture
ISBN: 978-0123944245
2nd edition
Authors: David Harris, Sarah Harris
Posted Date:
Students also viewed these programming questions
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
KYC's stock price can go up by 15 percent every year, or down by 10 percent. Both outcomes are equally likely. The risk free rate is 5 percent, and the current stock price of KYC is 100. (a) Price a...
-
What is the charge of the iron ion released upon dissolvingFe(NH 4 ) 2 (SO 4 ) 2 ?Remember the charges of the polyatomic ions NH 4 andSO 4 and that the entire compound will be chargeneutral. a). 8+...
-
The cost C (in millions of dollars) of removing p% of the industrial and municipal pollutants discharged into a river is given by C = 225p / 100 - p, 0 p < 100. (a) Use a graphing utility to graph...
-
You would like to produce a gray iron casting that freezes with no primary austenite or graphite. If the carbon content in the iron is 3.5%, what percentage of silicon must you add?
-
Jacobs, Jaohara and Jurd are partners in an importing business of JJJ Partners. The statement of financial position of the partnership as at 30 June 2025 is set out below. Required (a) Prepare the...
-
Pacific Financial Services Co., which specializes in appliance repair services, is owned and operated by Eileen Hastings. Pacific Financial Services Co.s accounting clerk prepared the unadjusted...
-
1 Explain briefly about six sigma and capacity maturity models? 2 Explain about the contemporary management practices taking place in Indian business model? 3 4 What is performance management?...
-
Boulware Company manufactures and sells electronic games. Each game costs $25 to produce, sells for $45, and carries a warranty that provides for free replacement if it fails during the two years...
-
Marshall uses a job order costing system to account for projects. It applies manufacturing overhead to jobs on the basis of direct labor hours and pays its direct labor workers $30 per hour. The...
-
1. Why should nations trade with other nations (explain)? 2. Evaluate the forces that can discourage participation in global business ? 3. What is trade protectionism and why is it good for domestic...
-
Consider the Specific-Factor model. What are the implications for domestic labor income of switching from autarky to open trade, when a given country is land-abundant? Does this impact differ if the...
-
How does Garret cast a threatening shadow over several characters' thoughts and actions? Did your opinion of him change as you learned about his home environment? How much blame can, or did, you...
-
What best describes COGS in a case of 24 bottles of coke?
-
Gabriel sold CosmoVerse stock that he purchased 300 shares at $22.09 per share one year ago for a 20% loss. (Round your answer to 2 decimal places.) How much did Gabriel pay in total for their shares...
-
During 2024, its first year of operations, Riley Construction provides services on account of $120,000. By the end of 2024, cash collections on these accounts total $90,000. Riley estimates that 20%...
-
The rate at which the temperature of an object changes is proportional to the difference between its own temperature and the temperature of the surrounding medium. Express this rate as a function of...
-
Draw a number line analogous to Figure 1.11 for 3-bit biased numbers with a bias of 3. 6 -8 -7 -6 -5 -4 13 14 15 -3 -2 -1 3 4 10 11 12 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100...
-
Write a Boolean equation in product-of-sums canonical form for the truth tables in Figure 2.80. (a) (b) (c) (d) (e) A Oo HO1O1OH
-
Describe in words what the state machine in Figure 3.70 does. Using binary state encodings, complete a state transition table and output table for the FSM. Write Boolean equations for the next state...
-
Figure \(\mathrm{P} 10. 16\) represents two stroboscopic pictures (taken at the same flash rate) of a block moving along a ramp that exerts a frictional force on the block. In one sketch, the block...
-
You keep a chalkboard eraser pressed against the chalkboard by using your finger to exert a horizontal force on the back of the eraser. (a) Which type of force (call it force A) keeps the eraser from...
-
In Figure P10.18, all surfaces experience friction. Is the magnitude of the horizontal component of the force exerted by \(A\) on \(B\) greater than, equal to, or less than the magnitude of the...
Study smarter with the SolutionInn App