AVI K.

asked • 09/10/20

Coffee Shop programm

need C++ code for the following programming

The assignment is based on the following scenario:

The USP Coffee Shop offers a range of beverages to its customers. The coffee shop is upgrading their manual system and needs a simple order and change calculation program for the cashier. The menu items and prices are below:

_______________________________________________________

| Beverage Small Medium Large

______________________________________________________

| Long Black $3.50 $3.70 $4.00 | Flat White $3.80 $4.20 $4.50 |Cappuccino $4.00 $4.30 $5.00 |Tea $3.00 $3.20 $3.50


The new program should firstly display the menu, so that each beverage has an item number (example: 1 – Long Black, 2 – Flat White, 3 – Cappuccino, 4 - Tea). The cashier will enter the size of the beverage ordered (example: ‘S’ – small, ‘M’ – medium, ‘L’ - large).


We will assume the customers will only order one type and size of beverage, but any quantity. For example, 5 Small Flat White, or 3 Large Tea, or 6 Medium Long Black, etc. The cashier will enter the number of drinks being ordered. Your program will then calculate the total cost based on the item number, beverage size and number of drinks.


For simplicity, we will assume the customer will always pay more than the total cost of the order. The cahier will enter the amount paid by the customer and your program will calculate the amount of change to give. Lastly, your program will calculate and display the number of each denomination to give as the change. Assume the shop only has $10 and $5 notes, and $2, $1, 50c, 20c, 10c and 5c coins for giving out change.

1 Expert Answer

By:

Patrick B. answered • 09/10/20

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.