Professional Documents
Culture Documents
Your goal is to implement an application that allows employees of a coffee shop to place a customer order.
Your application should:
• get customer information including name, telephone number and address (one field for each).
• ask for the method of payment: Visa, MasterCard, or cash.
• ask for customer credit card number if he/she selects Visa or MasterCard.
• have four drink types (Coffee for $2.89, Espresso for $3.23, Cappuccino for $3.75, and Hot chocolate
for $2.25) and five accessories (Coffee mug $16.97, Coffee press $22.90, Coffee scoop $6.05, Coffee
grinder $24.99, Coffee mug warmer $10.99). All prices are for one order. Drink types and accessories
prices are shown on the screen next to each item (see list of menus below). The total price should
include tax at the rate of 10.25%. Assume the customers could place one order at a time. Selecting one
drink type will deselect the previous type. Accessories are optional. Selecting same accessory multiple
times does not add to number of accessory. Clear option clears all selected accessories.
• Gifts - select 2 accessories: Free cup of coffee; select 3 accessories: Free mug; select 4 or more
accessories: $5.00 gift card. Note: Maximum one gift per order; Customer may not pick a desired gift.
• calculate the total price when the user selects "Display Order Confirmation".
When the user selects the “Display Order Confirmation” option:
• if the input is complete, your application must generate an order confirmation shown below.
• if the input is incomplete, your application must generate one message, listing all the fields requiring
completion.
The user should be able to input data in any order.
Use functions (call-by-value only). Do not use global variables. Do not use arrays.
Make sure to test your program completely before submission. Do not forget to add comments.
Submit your well-documented C++ program via Canvas.
Congratulations. You will get the following free gift with your order:
Free cup of coffee
Page 1 of 2
Menus:
Note: The prices in the menu are not accurate. Use the prices in the project description.
Page 2 of 2