Question: Create a C + + program called lab 1 _ 2 . cpp that simulates a vending machine. In this program, you have to use
Create a program called labcpp 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: $
Today's Menu
A Regular coffee: $
B Regular decaf: $
C Combo: $
D Soda: $
Select your choice: A
You selected regular coffee.
Your change is: $
Have a nice day!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
