Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 20Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started