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). Once a month, each salesperson passes in a slip for each different product sold. Each slip contains the following:
Thus, each salesperson passes in between 0 and 5 sales slips per month (for up to 5 products). Write a program that will read all this information for the sales (one salesperson at a time) and summarize the total sales by salesperson by product. All totals should be stored in the 2-dimensional array sales. After processing all the information for last month, 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 a salesperson.