Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You will create an application for a Starbucks cashier. The application will print a greeting message The program will ask for 3 orders. For each
You will create an application for a Starbucks cashier.
- The application will print a greeting message
- The program will ask for 3 orders. For each order, the program will ask the name of the product (e.g. the user will input Gr. Latte Halzenut), the quantity (e.g. 2), and the unit price (e.g. 3.45).
- The system will ask the name of the customer
- The system will print a formatted receipt. Your receipt could be designed any way you want. I'm printing an example for you, but you may want to use your own design. It should contain:
- The name of the cashier (you can make it up)
- The name of the customer (entered by the user)
- The 3 items, if the person ordered 3 times the same item, you need to find a way to have it in your receipt, for example you could have Gr. Late (x3) and add the total (3 times the unit price).
- The subtotal (before tax)
- The tax. You can decide the tax amount, in my case I had it 8.25%.
- Your total
- The visa, and other components you feel that will make it complete.
C++
STARBUCKS Store #123405 1230 9th Street Oak Lawn, IL (708) 430-8903 03/12/2019 3:39 PM Cashier: Nora Roberts Customer: Amber Rosans Gr. Caramel Macchiato Gr. Latte Hazelnut TI Chai Tea Latte 3.29 3.95 3.39 Subtotal Tax 8.25% $10.63 $ 0.87 Total $11.50 Visa: XXXXXXXX0323 Change Due $0.00 STARBUCKS Store #123405 1230 9th Street Oak Lawn, IL (708) 430-8903 03/12/2019 3:39 PM Cashier: Nora Roberts Customer: Amber Rosans Gr. Caramel Macchiato Gr. Latte Hazelnut TI Chai Tea Latte 3.29 3.95 3.39 Subtotal Tax 8.25% $10.63 $ 0.87 Total $11.50 Visa: XXXXXXXX0323 Change Due $0.00Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started