Write a program that takes as input five numbers and outputs the mean (average) and standard...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program that takes as input five numbers and outputs the mean (average) and standard deviation of the numbers. If the numbers are x₁, x2, x3, x4, and x5, then the mean is x = (x₁ + x₂ + x3 + x4 + x5)/5 and the standard deviation is: 8= (x₁ - x)² + (x₂-x)² + (x3 - x)² + (x₁ - x)² + (x₁ - x)² 5 Your program must contain at least the following functions: a function that calculates and returns the mean and a function that calculates the standard deviation. Write a program that takes as input five numbers and outputs the mean (average) and standard deviation of the numbers. If the numbers are x₁, x2, x3, x4, and x5, then the mean is x = (x₁ + x₂ + x3 + x4 + x5)/5 and the standard deviation is: 8= (x₁ - x)² + (x₂-x)² + (x3 - x)² + (x₁ - x)² + (x₁ - x)² 5 Your program must contain at least the following functions: a function that calculates and returns the mean and a function that calculates the standard deviation.
Expert Answer:
Answer rating: 100% (QA)
Solution include include include using namespace std int main numbers int x1... View the full answer
Related Book For
Data Structures and Algorithms in Java
ISBN: 978-1118771334
6th edition
Authors: Michael T. Goodrich, Roberto Tamassia, Michael H. Goldwasser
Posted Date:
Students also viewed these programming questions
-
Write a program that takes as input an arithmetic expression. The program outputs whether the expression contains matching grouping symbols. For example, the arithmetic expression {25 + (3- 6)*8} and...
-
Write a program that takes integers from the user one at a time. Assume the input is some number of positive integers. The user will type in 0 to end the input and the 0 should not be counted as...
-
When a share of common stock of some company is sold, the capital gain (or, sometimes, loss) is the difference between the shares selling price and the price originally paid to buy it. This rule is...
-
Revenue for the new startup company "BCB Excavating" for the years 2017 through 2021 have been $543,000, $603,400, $789,000, $845,000, and $889,000 respectively. Year 2017 2018 2019 2020 2021 2022...
-
Callas Corporation paid $380,000 to acquire 40 percent ownership of Thinbill Company on January 1, 20X9. The amount paid was equal to Thinbills underlying book value. During 20X9, Thinbill reported...
-
Why should investors be concerned about a firms outstanding warrants and convertibles?
-
Fill in the Blank. The life of a machine follows the classic ___________ curve.
-
The LawnPlus Fertilizer Company distributes fertilizer to various lawn and garden shops. The company must base its quarterly production schedule on a forecast of how many tons of fertilizer will be...
-
We obtain monthly data on retail sales of supermarket and grocery stores in Victoria measured in millions of Australian dollars from January 2010 to January 2021 and the data are plotted in the...
-
Company ABC is a multinational company in Australia which has its branches all over the world. It has few servers like database server, Web server, Mail server and Storage Devices and different...
-
Business is bad. One of the coach operators is down-sizing. It has offered to sell one of its coaches to Merlion Holiday for a mere $180,000. This vehicle costed $250,000 some 2 years ago. Its useful...
-
How would you reconcile your role as a loyal employee and team player with your need to uphold ethical standards?
-
Arnold and Barbara Cane were divorced in June 2018. Pursuant to the divorce decree, Arnold is obliged to perform as follows: a. Transfer title of their personal home to Barbara. They purchased the...
-
Refer to the Pennsylvania Indemnity Co. case in a citator. What was the disposition of the case on appeal to the Supreme Court from the Court of Appeals?
-
Thomas and Tonya Taylor purchased a home for $125,000 on September 15, 2017. On October 8, 2018, they were divorced, and as part oft he divorce agreement, the home was transferred to Thomas, who sold...
-
Were Salcedos and Botbyls sentences appropriate? Why or why not?
-
The spring constant of kpred = 9.7 N/mm is predicted after carefully measuring or estimating the outside coil diameter, wire diameter, count of active coils and shear modulus. Use the method of the...
-
Explain five different cases of income exempt from tax with clear examples.
-
Repeat the previous problem, but use knowledge of the size of the list to traverse from the end of the list that is closest to the desired index. Previous problem Suppose we want to extend the...
-
Suppose we are given two n-element sorted sequences A and B each with distinct elements, but potentially some elements that are in both sequences. Describe an O(n)-time method for computing a...
-
In the merge-sort tree shown in Figures 12.2 through 12.4, some edges are drawn as arrows. What is the meaning of a downward arrow? How about an upward arrow? Figures 12.2 Figures 12.4 85 24 45 17 31...
-
Consider the following letter from the managing partner of Cooney \& Associates, CPAs, to the legal counsel for their client, The Chartreuse Catfish Restaurant Group, requesting information on...
-
This chapter uses the Balanced Scorecard as an mechansim for conducting business measurement analysis. An increasingly used approach for tracking performance measurement is the use of dashboard...
-
Contingent liabilities often are one of the most serious issues for an auditor to audit because a single contingent liability can be highly material. Further, clients are hesitant to establish...
Study smarter with the SolutionInn App