1) Use a two dimensional array tosolve the following problem: A company has four
ID: 3613890 • Letter: 1
Question
1) Use a two dimensional array tosolve the following problem: A company has four salespeople (1to 4)who sell five different products (1to 5). Once a day, eachsalesperson passes in a slip for each type of product sold. Eachslip contains the salesperson number, the product number and thetotal dollar value of that product sold that day. Thus eachsalesperson passes in between 0 and 5 sales slips per day. Assumethat the information from all the slips for the last month isavailable. Write an application that will read this information forlast month’s sales and summarize the total sales bysalesperson and by product. All the totals should be stored in twodimensional array sales. After processing all the information forthe last month, display the results in tabular format, with eachcolumn representing a particular salesperson and each rowrepresenting a particular product. Cross total each row to get thetotal sales for each product for the last month. Cross total eachcolumn to get the total sales by the sales person for last month.Your tabular output should include these cross totals to the rightof totaled rows and to the bottom of the totaled columns.