Answered step by step
Verified Expert Solution
Question
1 Approved Answer
hello this is a vending machine code. need help. my number/data need to be used are . $10 a. regular coffee 3$ b. regular decaf
hello this is a vending machine code. need help. my number/data need to be used are . $10
a. regular coffee 3$
b. regular decaf 2$
c. combo 5$
d. soda 1$
select A. as your choice. you selected regular coffee. your change is 7$
have a nice day message displayed.
You will start by to using the following main, but finish it by defining the missing code w Title: Lab1_2.cpp Description: Authore Date: #include Riostream Windlude Rastdlib> using namespace std3 Declare the two functions here int main declarations double money char option: w formaling dout self (log.. showpoint) Courself (os.fixed), Coul precision (2) HT proipt cout Welcome to the Hartnell Vending Machine "; Coul Insert money. " in >> doney: (money cout Sorry, you fe out of luck." exit(); menu kout Seed your choice in options money pay option, chorey Cool Younge Rc money ke endl; Eco Peave a nice day! Develop functions thenselves hereStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started