Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

You will create an application for a Starbucks cashier.

  1. The application will print a greeting message
  2. 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).
  3. The system will ask the name of the customer
  4. 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:
    1. The name of the cashier (you can make it up)
    2. The name of the customer (entered by the user)
    3. 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).
    4. The subtotal (before tax)
    5. The tax. You can decide the tax amount, in my case I had it 8.25%.
    6. Your total
    7. 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.00

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle RMAN For Absolute Beginners

Authors: Darl Kuhn

1st Edition

1484207637, 9781484207635

More Books

Students also viewed these Databases questions

Question

How to find if any no. is divisble by 4 or not ?

Answered: 1 week ago

Question

Explain the Pascals Law ?

Answered: 1 week ago

Question

What are the objectives of performance appraisal ?

Answered: 1 week ago