Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Statistics and Probability Expert

Deitel's How to Program C

Use a double-subscripted array to solve the following problem. A company has four salespeople (1 to 4) who sell five different products (1 to 5). Each salesperson passes in slips for each different type of product sold. Each slip contains the following:

a) The salesperson number

b) The product number

c) The total dollar value of that product sold that day Thus, each salesperson passes in between 0 and 5 sales slips per day. Assume that the information from all of the slips for last month are available. I need to write a program that reads all this information for last month's sales and summarize the total sales by salesperson by product. All totals should be stored in the two-dimensional array sales. After processing all the information for last month, print the results in tabular format with each of the columns representing a particular salesperson and each of the rows representing a particular product. Cross total each row to get the total sales of each product for last month; cross total each column to get the total sales by salespersonfor last month. Your tabular printout should include these cross totals to the right of the totaled rows and to the bottom of the totaled columns.

Statistics and Probability, Statistics

  • Category:- Statistics and Probability
  • Reference No.:- M92840514
  • Price:- $10

Priced at Now at $10, Verified Solution

Have any Question?


Related Questions in Statistics and Probability

Describe the steps you tooknbspthere are 652 males 396 say

Describe the steps you took.  There are 652 males, 396 say they have been to dentist in past year. Give a confidence interval for 90% of the  population proportion .

In a single season an average of 24 home runs were hit per

In a single? season, an average of 2.4 home runs were hit per game. Assume the number of home runs per game follows the Poisson distribution. ?a) What is the probability that 6 home runs will be hit in a randomly selecte ...

You buy 200 shares of stock at 500 per share you receive

You buy 200 shares of stock at $5.00 per share. You receive one dividend of 20 cents per share. You sell the stock two years later for $6.00 a share. Fee for selling the stock online is $15.

In a health club research shows that on average patrons

In a health club, research shows that on average, patrons spend an average of 42.5 minutes on the treadmill, with a standard deviation of 4.8 minutes. It is assumed that this is a normally distributed variable. Find the ...

There are 2 white balls and 8 red balls in an urn consider

There are 2 white balls and 8 red balls in an urn. Consider selecting one ball at a time from the urn. What is the probability that the first ball is red and the second ball is also red? Express the probability in fracti ...

Diastolic blood pressures are approximately normally

Diastolic blood pressures are approximately normally distributed with a mean of 75 and a standard deviation of 10. If we consider samples of 20 patients, what is the 90th percentile of the mean diastolic blood pressure?

In a study comparing response rates between treated and

In a study comparing response rates between treated and non-treated subjects, 60% of subjects are observed to have both responded and been treated. If we also know that a randomization ratio of 2:1 was used (e.g. twice a ...

Many high school students take the ap tests in different

Many high school students take the AP tests in different subject areas. In 2007, of the 144,796 students who took the biology exam 84,199 of them were female. In that same year, of the 211,693 students who took the calcu ...

According to a field poll 79 of california adults actual

According to a Field Poll, 79% of California adults (actual results are 400 out of 506 surveyed) feel that "education and our schools" is one of the top issues facing California. We wish to construct a 90% confidence int ...

An important part of the customer service responsibilities

An important part of the customer service responsibilities of a cable company relates to the speed with which trouble in service can be repaired. Historically, the data show that the likelihood is 0.75 that troubles in a ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As