Question: Write a C++ program to immitating a vending machine. The program should present the user with a choice of 6 products of your choice (Coke,
Write a C++ program to immitating a vending machine. The program should present the user with a choice of 6 products of your choice (Coke, Water, Chocolate Bar etc). Then allow the user to choose a product by entering a number 1-6. Add an exception for invalid input if the user inputs a number which doesnt correspond to any choice. Use If statement
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
