[Vending Machine Control Simulation]
Coins in: Nickels, Dimes, Quarters, 50 cent piece, and dollars
A:use push button dedicated to each coin type for coin in
B:display (BCD Display) running total of coins in.
C:allow a refund switch that refunds exactly the coins in
D:change in nickels, dimes, and quarters
E:max in no greater then 2 dollars immediately refund and additional coins input.
[I have completed all of the above its stage two I need help in below]
STAGE 2
Product and Prices
Product IDPrice
A .15
B .25
C .50
D .75
E .85
simulate product being dispensed by a 5 second light on an appropriate output
simulate change by turning on a 5 second light for each coin being returned in change. If more than one coin of a given denomination is required to make change, turn the corresponding light on for 5 seconds, off for 2 seconds, back on for 5 seconds, etc. One 5 second blink for each coin