Question: Create a C + + program called lab 1 _ 2 . cpp that simulates a vending machine. In this program, you have to use

Create a C++ program called lab1_2.cpp that simulates a vending machine. In this program, you have to use two functions (menu and pay) to achieve this task. A sample run of your program might look like this.
Welcome to the Hartnell Vending Machine
Insert money: $10
Today's Menu
A. Regular coffee: ($3)
B. Regular decaf: ($2)
C. Combo: ($5)
D. Soda: ($1)
Select your choice: A
You selected regular coffee.
Your change is: $7.00
Have a nice day!
 Create a C++ program called lab1_2.cpp that simulates a vending machine.

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!