Question: Computer science homework, please help with C++ code please WARNING: You MUST use do-while loop to complete this exercise to receive points! Write a program

Computer science homework, please help with C++ code please WARNING: You MUSTComputer science homework, please help with C++ code please

WARNING: You MUST use do-while loop to complete this exercise to receive points! Write a program to simulate a simple vending machine. The program starts by asking the user to insert credit which the user types, like this: Enter credit: After that the program prints the following menu: Select option: 1 - Soda (1.00) 2 - Chips (1.00) 3 - Quit Until the user enters 3 (quit) or the balance falls below $1 and it is no longer possible to make a purchase. After one of these conditions is met, print the message Goodbye! And end the program. You can assume the initial credit will always be positive and the user will always make a valid selection (1, 2 or 3). Any attempt to hard code answers will result in a 0 for the exercise. 298500.15247623zqy7 LAB ACTIVITY 34.3.1: Unit 2 - Exercise 4A (3/13) 0730 main.cpp 1 O ALIENWARE FY FS F6 FZ F8 F9 . FIO F F12 HOME END T-PAD ALIEN FX PRT SCRN PAUSE %

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!