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

C++ help. Use a C array, not C++ array.

C++ help. Use a C array, not C++ array. Use a two-dimensional

array to solve the following problem. A company has four salespeople (1

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

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!