Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / Coffee Shop offers a range of beverages to its customers

Coffee Shop offers a range of beverages to its customers

Computer Science

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:pic 111.PNG

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.

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE

Related Questions