Question: Design and implement a coffee dispesner machine simlulator in C++, the program must present the user w/a choice of your 5 coffee drinks (Cappuccino, Americano,

Design and implement a coffee dispesner machine simlulator in C++, the program must present the user w/a choice of your 5 coffee drinks (Cappuccino, Americano, Espresso, Macchiato, Mocha, latte, etc). Then allow the user to choose between any of those coffee types by entering number 1 - 5 , Then output the coffee that the user choose. Basically your system will need to store the following:

Coffee name, price for the coffee and number each coffee type in the machine. From these data your system should be able to report sales and turnover ($) of each type of coffee over a given period.

The initials data is as follows:

DRINK NAME COST NUMBER IN MACHINE

Cappuccino 1.50 30

Latte 1.60 30

Espresso 1.70 30

Macchiato 1.90 30

Mocha 3.50 20

If your program uses if statements instead of a switch statement, modify it to use a swtich statement. If instead your program uses a switch statement, modify it to use if/else-if statements

modify the program so that if the user enters a choice other than 1-5 them it will output " Error, choice is not validm here's your money back"

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!