Question: 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

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 weeks sales.

In C preffered

 Use a 2-dimensional array to solve the following problem. A company

2. 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: *stores all the data in a 2-dimensional array called sales data (you can hard code the * uses a function called SalesPerson to total each row to get the total sales of each * uses a function called SalesProduct to total each column to get the total sales by each . uses a function called DisplaySales to print the results in tabular format, including array contents for this exercise instead of having the user enter it) person. Store these totals in a 1-dimensional array called person totals product. Store these totals in a 1-dimensional array called product totals row and column totals, similar to the table below Product Product 2 Product 3 Product 4Product 5 Total Salesperson1 100 Salesperson 2 120 Salesperson 3 50 Salesperson 4 30 Total 120 40 100 250 210 30 100 75 50 50 120 45 15 50 80 20

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!