Using Queues Simulate Vending Machine Five 5 Types Drinks 10 Slots Type Drink Drink 150 Ma Q37073693

Using queues, simulate a vending machine for five (5) types ofdrinks; there are only 10 slots for each type of drink, and eachdrink is $1.50. The machine will be “loaded” based on an input filecontaining the names (string) of the drinks. Your program should bemenu driven so that the user may select the type of drink and payfor it; messages should be displayed if there are no more of thedrink selected and if the user does not submit enough money. Oncethe user wishes to quit the program, your program should display acount of how many drinks are left for each

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.