Question: C++ help. Use a C array not a C++ array. Use a two-dimensional array to solve the following problem. A company has four salespeople (1

C++ help. Use a C array not a C++ array.
 C++ help. Use a C array not a C++ array. Use
a two-dimensional array to solve the following problem. A company has four

Use a two-dimensional array to solve the following problem. A company has four salespeople (1 to 4) who sell five different products (1 to 5). Each salesperson passes in a slip for each different type of product sold. Each slip contains the following: 1. The salesperson number 2. The product number 3. The total dollar value of that product sold that day Each salesperson passes in between O and 5 sales slips. Write a program that will read all this information for last week's sales (one salesperson's data at a time) and summarize the total sales by salesperson by product. All totals should be stored in the two-dimensional array sales. After processing all the information, print the results in tabular format with each of the columns representing a particular salesperson and each of the rows representing a particular product Cross total each row to get the total sales of each product; cross total each column to get the total sales by salesperson. Your tabular printout should include these cross totals to the right of the totaled rows and to the bottom of the totaled columns You can choose to use either C Array, or C++ Array Enter -1 for the salesperson to end input. 1 1 340 2 1 20e 3 1 400 4 1 100 1 2 100 2 2 70 3 2 80 4 2 94 1 3 99.5 2 3 76.5 3 3 85.15 4 3 408 1 4 50 2 4 90.5 3 4 310 4 4 250 1 5 51.5 2 5 38.9 3 5 78.5 4 5 120 The total sales for each salesperson are displayed at the end of each row, and the total sales for each product are displayed at the bottom of each column. 2 106. 78 . 80 . 94. 3 99.50 76.50 85.50 5 51.5 38.90 78.50 129 . Total 641.00 475 , 98 954.00 964 , 340.00 se . 90.50 310. 256. 2 400.0e Total 148.ee Program ended with exit code: e 344 . 661.50 700.50 288.90 3e34 . 9e

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!