Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Problem:

Question- Write a c++ program which will compute the average of as user entered list of postive integers. The user would indicate the end of the list by entering a zero or negative number. Once the list is ended the program should report the number of integers entered (not including the terminating 0 or negative). The sum of the integersm and the average of the integers wuth six digit precision. Make sure your program takes into consideration the possible side effect of entering a negative number. The program should also work if no numbers are in the list and the only entry being 0 or negative. IN this case there is no output and program should terminate. Only integers will be entered.

Please show the coding step by step.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91174116

Have any Question?


Related Questions in Computer Engineering

Why should one listen to peter drucker in other words what

Why should one listen to Peter Drucker? In other words, what are his credentials/expertises? Provide at least three reasons. Copy question to the beginning of answer.

1 the economy is in a recession with high unemployment and

1) The economy is in a recession with high unemployment and low output (i.e. the output currently is lower than the natural level of output) a) Draw a graph of aggregate demand and aggregate supply to illustrate the curr ...

Jeff decides to start saving some money from this upcoming

Jeff decides to start saving some money from this upcoming month onwards. He decides to save only $500 at first, but each month he will increase the amount invested by $100. He will do it for 60 months (including the fir ...

Determine the percentage of mass of the atmosphere that

Determine the percentage of mass of the atmosphere that resides between sea level and a height of 18.3 km. Assume an average pressure of 1.00 atm at sea level and a temperature of the atmosphere of 15 °C. The average mol ...

Software reliability quality assurancequestion please refer

Software Reliability Quality Assurance Question please refer below Assume you work for an organisation that develops database products for individuals and small businesses. This organisation is interested in quantifying ...

A student goes to the library let events b the student

A student goes to the library. Let events B = the student checks out a book and D = the student checks out a DVD. Suppose that P(B) = 0.52, P(D) = 0.85 and P(B AND D) = 0.05. Find P(B|D). Give your answer as a decimal ro ...

Software engineeringeach of the following heuristics helps

Software Engineering: Each of the following heuristics helps make a good module according to some modularity principle. Identify the principle for each letter. Modularity principles: Principle of Small Modules Principle ...

What type of monopoly is sydney water describe the main

What type of monopoly is Sydney Water? Describe the main characteristics of this monopoly type in general and in relation to Sydney Water.

Describe the difference in economic profit between a

Describe the difference in economic profit between a competitive firm and a monopolist in both the short and long run. Which should take longer to reach the long-run equilibrium?

1 under what circumstances is it advantageous for a company

1. Under what circumstances is it advantageous for a company competing in foreign markets to concentrate its value chain activities in a select few locations? Under what circumstances is it advantageous for a company com ...

  • 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