Write a program that calculates the mean and standard deviation of a list of fiv
ID: 3638624 • Letter: W
Question
Write a program that calculates the mean and standard deviation of a list of five numbers. Your program should have two functions main: prints information about the program and displays the results CalcStats: calculates the mean and standard deviation of five numbers Recall that mu = (Sigma xi)/n and standard deviation = root(mu - a)2 + (mu - b)2 + (mu - c)2 + (mu - d)2 + (mu - e)2 You should hard code the data (23,4,15,77,32). Your results should be mean: 30.2 and standard deviation: 25.15 Mean and standard deviation should be passed by reference and the data passed by value to the function If time you can edit your program to read in 5 data values from the user, but that is not the primary goal of this lab.Explanation / Answer
div.guess { border: thick double black; padding: 1em; width: 50%; font-family: Arial, Helvetica, sans-serif; } div.guess h2 { margin: 0; padding: 0; text-align: center; margin-left: 1em; margin-right: 1em; } div.guess input { font-size: 100%; } div.guess p.input { margin: 0; padding: 0; font-size: 150%; margin-top: .5em; margin-bottom: .5em; text-align: center; margin-left: 1em; margin-right: 1em; } div.guess input.button { margin: 0; padding: 0; display: inline; padding-left: .5em; padding-right: .5em; padding-top: .25em; padding-bottom: .25em; } div#alert1 { position: absolute; width: 25%; border:medium solid black; display: none; background-color: white; color: black; text-align: center; padding-bottom: 1em; font-family: Arial, Helvetica, sans-serif; } div#alert1 p.title { margin: 0; padding: 0; color: white; background-color: black; text-align: center; font-weight: bold; border-top: thin solid white; border-left: thin solid white; border-right: thin solid white; }
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.