Question: C ++ programming. Please make sure the code and output look nice and clean. Also please add explanations in brief as comments. Please post the

C ++ programming. Please make sure the code and output look nice and clean. Also please add explanations in brief as comments. Please post the output as well thanks.

C ++ programming. Please make sure the code and output look nice

Sun A common place to buy candy at the school is from a machine. A new candy machine has been purchased for the gym, but it is not working properly due to the software problems. The machine sells candies, chips, gum, and cookies. You have been asked to write a program for this candy machine so that it can be put into operation. The program should do the following: 1. Show the customer the different products sold by the candy machine. 2. Let the customers make the selection. 3. Show the customer the cost of the item selected. 4. Accept money from the customer. 5. Release the item. Input The item selection and the cost of the item. Output The selected item. . A candy machine has two main components: a built-in cash register and several dispensers to hold and release the products. NOTE: There should be at least 2 classes (look for hints in the question to find out what these classes should be). Feel free to add more if you find it useful

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!