Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 dispenser
and 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 be
taken if that product is selected.
This circuit uses only combinational logic and is an example of a
reasonably complex system.
Unfortunatley, there is an issue with the machine that Im dealing with. Requirement three is that the coin input will stop once cents is reached but this is not working so customers can continue depositing coins into the machine. How do I correct this issue?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started