Use C++ Prog language  Required: 1. First 3 lines of code will be three comment lines a. Name of the cpp file b. Your name c. Why you are doing this program 2. The user will enter in the number of sales items 3. The user will enter in the price for each item 4. The user will enter in the sales tax percentage 5. Output - Title for the output - The price of each sales items - The sales price total - The sales tax - The grand total - Money amount have 2 decimal point places - Money amount to be aligned - Boarder around the output 6. The user will have the ability to run this program again.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Use C++ Prog language 

Required:
1. First 3 lines of code will be three comment lines
a. Name of the cpp file
b. Your name
c. Why you are doing this program
2. The user will enter in the number of sales items
3. The user will enter in the price for each item
4. The user will enter in the sales tax percentage
5. Output
- Title for the output
- The price of each sales items
- The sales price total
- The sales tax
- The grand total
- Money amount have 2 decimal point places
- Money amount to be aligned
- Boarder around the output
6. The user will have the ability to run this program again.

Fig. 1 is an example of the input screen.
CA "C:\Documents and Settings\jlong\Desktop\H...
How many sales items do you have? : 5
Enter in the value of sales item 1: $10
Enter in the value of sales item 2 : $20
Enter in the value of sales item 3 : $30
Enter in the value of sales item 4: $40
Enter in the value of sales item 5 $50
Fig. 1
Fig.2 is an example of the output screen.
"C:\Documents and Settings\jlong\Desktop\HW\...
*-*
*-*
*****
SALES RECEIPT
************************
Sales item
Sales item
Sales item
Sales item
Sales item
Total Sales
Sales tax
Grand Total
*****
12345
2
3
4
****
5
Press any key to continue
10.00
20.00
30.00
40.00
50.00
150.00
9.00
$ 159.00
**
**
*-*
0
**
*-*
**
0
X
X
Transcribed Image Text:Fig. 1 is an example of the input screen. CA "C:\Documents and Settings\jlong\Desktop\H... How many sales items do you have? : 5 Enter in the value of sales item 1: $10 Enter in the value of sales item 2 : $20 Enter in the value of sales item 3 : $30 Enter in the value of sales item 4: $40 Enter in the value of sales item 5 $50 Fig. 1 Fig.2 is an example of the output screen. "C:\Documents and Settings\jlong\Desktop\HW\... *-* *-* ***** SALES RECEIPT ************************ Sales item Sales item Sales item Sales item Sales item Total Sales Sales tax Grand Total ***** 12345 2 3 4 **** 5 Press any key to continue 10.00 20.00 30.00 40.00 50.00 150.00 9.00 $ 159.00 ** ** *-* 0 ** *-* ** 0 X X
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Algebraic Expressions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education