Question: The following is a virtual vending machine simulator that meets the following requirements: 1 . The customer can input the following coins: 5 - cent,
The following is a virtual vending machine simulator that meets the following requirements:
The customer can input the following coins: cent, cent, cent.
When cents is input, the machine will activate the dispenserand permit the customer to select a product.
When at least cents is input no more coins will be accepted.
Change will be returned to the customer if more than cents is deposited.
A reset button will return the customers money.
When a product is dispensed, cents will be added to the machines Total Money Collected register.
No product is dispensed if less than cents is deposited.
The current number of items available for each product is stored
in a counter.
When a service technician restocks the machine the item count
for each product is set to which is the maximum number of
items that can be stocked.
If the number of products available is zero for any one product
the machine will light a sold out light and no action will betaken if that product is selected.
This circuit uses only combinational logic and is an example of a reasonably complex system.
Unfortunatley, there are two issues with the machine that Im dealing with.
When a product is dispensed, the coins deposited and change returned is not reset back to zero. This means that a customer could deposit cents and then keep selecting products untilthe machine is empty.
Requirement six says that the machine totals all of the money col
lected but that is not functional.
How do I go about fixing this?
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
