Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

URGENT NEED HELP ASAP Write a C++ program that operates as a vending machine. Th

ID: 650242 • Letter: U

Question

URGENT NEED HELP ASAP

Write a C++ program that operates as a vending machine. The vending machine should display four snack choices to the user (cookie, chip, candy, and soda). Your program should replace each of the snack choices with your favorite type of related snack. For example, chip could be replaced by Cheetos and candy could be replaced by Snickers. Be creative! This program should include a combination of void and value-returning functions. In particular, use five separate functions to do the following:

1. Create a value-returning function that displays the snack choices and prompts the user to select one (For example, Please make a selection. Press 1 for M&M Cookies. Press 2 for Cheetos. Press 3 for Snickers. Press 4 for Mountain Dew). Use an appropriate message to ask the user to enter a number.

2. Create four void functions that display the snack that corresponds with the user

Explanation / Answer

Chegg removed the "Edit Point Total" feature and now no one is answering questions