Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Theory And Applications 27th Australasian Database Conference Adc 20 Sydney Nsw September 28 29 20 Proceedings Lncs 9877

Authors: Muhammad Aamir Cheema ,Wenjie Zhang ,Lijun Chang

1st Edition

3319469215, 978-3319469218

More Books

Students also viewed these Databases questions