Use a two-dimensional array to solve the problem. A company has four sales people (1 to 4) who sell 5 different products (1 to 5). Once a day, each sales person passes in a slip for each type of products sold. each slip contains:
a. The salesperson number
b. The product number
c. The total dollar value of that product sold that day
Thus, each sales person passes in between 0 and 5 sales slip per day. Assume that the information from all the slips for last month is available. Write an application that will read all this information for last month's sales by sales person and by product. All totals should be stored in a two-dimensional array sales. After processing the information for last month, display the result in tabular format, with each column representing a particular product. Cross-total each row to get the total sales of each product for last month. Cross-total each column to get the total sales by sales person for last month. Your tabular output should include these cross-totals to the right of the total tows and to the bottom of the total columns.
Who can solve this? Please help! Thanks!