So I have this assignment, and I'm not sure if I'm headed to the right direction. The assignment is,
"Consider a vending machine where all items cost 50 cents. The vending machine accepts only quarters. Any insertion that is not a quarter will simply drop through (by mechanical action) to the change bin and will not affect the counter or the control circuit (so the control circuit is unaware of it). Each time a valid coin is inserted, the machine must keep track of the total value of all the coins inserted for this transaction. When it has counted 50 cents, it lights a display instructing the user to make a selection. If the user attempts to insert additional coins at this point, the new coins drop through to the change bin without being counted, the display remains lit, and the machine continues to wait for a selection. There is no need for a change return. There is a “cancel” button for the user to abort the transaction. Pressing “cancel” releases all the coins captured for this transaction to the change bin, resets the count to zero, and turns off the display light. The machine is ready for the next transaction. When the user presses the selection button, the product is dispensed, and the machine is reset to its initial state awaiting a transaction. For the purpose of this problem, assume that there is only one product choice.
Note that the outputs are: (1) the display light, (2) the coin release (which empties the coin holding bin to the change chute), (3) the coin bypass (which routes coin inserts directly to the change chute), and (4) the product release. What are the user inputs?"
So far, I have this table. I'm amssuming that pennies don't exisit, and only one type of currency exists. I was thinking that there should be Don't Cares, but I'm not sure.
"Consider a vending machine where all items cost 50 cents. The vending machine accepts only quarters. Any insertion that is not a quarter will simply drop through (by mechanical action) to the change bin and will not affect the counter or the control circuit (so the control circuit is unaware of it). Each time a valid coin is inserted, the machine must keep track of the total value of all the coins inserted for this transaction. When it has counted 50 cents, it lights a display instructing the user to make a selection. If the user attempts to insert additional coins at this point, the new coins drop through to the change bin without being counted, the display remains lit, and the machine continues to wait for a selection. There is no need for a change return. There is a “cancel” button for the user to abort the transaction. Pressing “cancel” releases all the coins captured for this transaction to the change bin, resets the count to zero, and turns off the display light. The machine is ready for the next transaction. When the user presses the selection button, the product is dispensed, and the machine is reset to its initial state awaiting a transaction. For the purpose of this problem, assume that there is only one product choice.
Note that the outputs are: (1) the display light, (2) the coin release (which empties the coin holding bin to the change chute), (3) the coin bypass (which routes coin inserts directly to the change chute), and (4) the product release. What are the user inputs?"
So far, I have this table. I'm amssuming that pennies don't exisit, and only one type of currency exists. I was thinking that there should be Don't Cares, but I'm not sure.
Last edited: