Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Description: Write a C++ program that will print a yearly sales report using the data contained in a file. Print page and column headings as

Description: Write a C++ program that will print a yearly sales report using the data contained in a file. Print page and column headings as shown on the last page. The data for the report is contained in a text-type file named dataIn.txt.

text files for dataln.txt

2 4 1087.23 1 1 30478.00 1 2 50211.35 3 3 5087.98 4 5 54387.45 2 4 67549.22 1 1 12988.70 4 2 44187.00 3 4 67511.76 3 3 417.90 1 2 89211.90 4 1 9018.44 1 6 34755.43 3 4 12953.63 1 3 56191.00 4 2 5739.38 4 5 44879.50 2 4 12977.00 3 1 67388.55 1 4 45611.90 4 3 76344.98 2 2 43200.76 2 3 1957.23 1 2 45268.00 1 1 23751.35 3 5 4922.98 4 4 53757.45 2 6 53779.22 1 2 37228.70 4 4 84647.00 3 3 73911.75 3 4 737.90 1 5 36211.90 4 2 9098.44 1 5 55155.43 3 3 83653.63 1 2 46731.00 4 4 2649.38 4 6 63479.50 2 5 42747.00 3 2 38468.55 1 5 83571.90 4 4 44734.98 2 3 83540.76 0 0 0.0 

and text files for dataout.txt

YOUR NAME SALES REPORT CHAPTER 9 LESSON 2 Salesman Product Amount 2 Bob 6 Frame 5781.26 5 Earl 1 Angle 1662.34 3 Charles 4 Doppler 3221.58 2 Bob 2 Brace 2543.19 1 Alan 3 Corner 2684.27 4 Donald 5 Evener 6135.74 5 Earl 2 Brace 4713.98 Salesman Totals 1 Alan 102422.69 2 Bob 450433.51 3 Charles 368189.24 4 Donald 182563.74 5 Earl 594367.48 Product Totals 1 Angle 483495.33 2 Brace 299628.46 3 Corner 286472.29 4 Doppler 155742.58 5 Evener 416378.73 6 Frame 576287.66 

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

Database Design Application Development And Administration

Authors: Michael V. Mannino

3rd Edition

0071107010, 978-0071107013

Students also viewed these Databases questions