Question: Only #include is allowed Use a 2-dimensional array to solve the following problem. A company has four salespeople who sell five different products. Here is
Only #include

Use a 2-dimensional array to solve the following problem. A company has four salespeople who sell five different products. Here is a table of their last week's sales. Write a program that reads all this information and summarizes the total sales by salesperson and by product. Print the results in tabular format and cross total each row to get the total sales of each person last week, cross total each column to get the total sales by each product for last week Your tabular printout should include these cross totals to the right of the totaled rows and to the bottom of the totaled columns 3. Product 2 120 40 100 250 Product3 210 30 100 75 Product 4 50 50 120 Product 5 15 50 80 20 Product 1 Salesperson 1 100 Salesperson 2 120 Salesperson 3 50 Salesperson 4 30
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
