Question: I NEED ANSWER IN C++ AND BY DECLARING STRUCTURE ABOVE MAIN. PLEASE!! CSE 112 Lab #3 Drink Machine Simulation Array of Structures Ref: Write a

I NEED ANSWER IN C++ AND BY DECLARING STRUCTURE ABOVE MAIN. PLEASE!!

CSE 112 Lab #3 Drink Machine Simulation Array of Structures Ref:

Write a program that simulates a soft drink machine. Use a structure that stores:

Drink Name

Drink Cost

Number of drinks in machine

The program will create an array of five (5) structures. Initialize the elements with the data on page 662, and comply with the requirements of the challenge. Also, output the current inventory of the soda.I NEED ANSWER IN C++ AND BY DECLARING STRUCTURE ABOVE MAIN. PLEASE!!

Output screen captures 1) Cola 2) Root Beer 3) Lemon-Lime 4) Grape Soda 5) Cream Soda 6) Leave the drink machine .75 (20) remaining 6.75 (28) remaining 0.75 (2) remaining 0.80 0.88 (20) remaining (20) remaining Choose one: 1) Cola 2) Root Beer 3) Lemon-Lime 4) Grape Soda 5) Cream Soda 6) Leave the drink machine 0.75 (2) remaining 0.75 (20) remaining 0.75 0.80 (20) remaining 0.8 (2) remaining (20) remaining Choose one: 3 Enter an amount of money: 1 Thump, thump, thump, splat! Enjoy your beverage! hange calculated: .25 our change, .25 has just dropped into the Change Dispenser. There are 19 drinks of that type left. 1) Cola 2) Root Beer 3) Lemon-Lime 4) Grape Soda 5) Cream Soda 6) Leave the drink machine 8.75 e.75 6.75 0.80 8.88 (20) remaining (20) remaining (19) remaining (20) remaining (20) remaining Choose one

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!