Computing the standard deviation

Assignment Help C/C++ Programming
Reference no: EM13498917

Four Score Standard Deviation 

Write three functions, statistics, average, and sD as follows. The statistics function returns no value and has six parameters : four scores followed by their average and standard deviation. It invokes average and sD in order to obtain the values of the average and standard deviation for the four scores it receives. The average function has five parameters : four scores followed by their average-- its job is to compute the value of average from the four scores. The sD function has six parameters : four scores followed by their average and their standard deviation-- its job is to compute the standard deviation from the scores and their average. 

Computing the Standard Deviation: The deviation of a score is the difference between it and the average. The standard deviation of four scores is defined to be the square root of ... the average of ... the square of ... the deviation of EACH score. 

Embed the function in a driver program that allows you to tests the function again and again until you tell the program you are finished. 

Input Details: The scores are entered as numbers with or without decimal points. In response to the continuation prompts (described below) the user types a y or a Y to signify "continue" with any other character signifying "quit". 

Output Details: Prompt for the input using "Enter 4 decimal numbers, I will give you the mean and standard deviation of the data". The output should be of the form: "mean score1 score2 score3 score4 is AVERAGE" followed by (on the next line) "the standard deviation of these numbers is STANDARD DEV", and followed by the continuation prompt "y or Y continues, any other terminates"

Reference no: EM13498917

Questions Cloud

Explain the overall mass-transfer coefficient for oxygen : What is the overall mass-transfer coefficient for oxygen (O2) from the atmosphere to the river (b) Which part of the transfer mechanism controls the overall rate
Oxygen gas has an oxidizing strength comparable to that : Oxygen gas has an oxidizing strength comparable to that of nitric acid. Patina is a green or greenish-blue coating that forms on copper metal in the environment. Account for its formation.
Differentiate the function f(x) : Differentiate the function f(x)
Find the flow rate through the hose : Water is ejected from a garden hose of radius 1.07 cm at a speed of 4.57 m/s. Find the flow rate through the hose
Computing the standard deviation : Input Details: The scores are entered as numbers with or without decimal points. In response to the continuation prompts (described below) the user types a y or a Y to signify "continue" with any other character signifying "quit".
Explain where did that number come from : I dont understand how 'n' in the equation turned into 4.35x10^2...where did that number come from
What is the speed of light as it travels through the prism : If the index of refraction of a plastic prism is 1.6711 ± 0.008467, what is the speed of light as it travels through the prism
Describe how to adjust the power of your test to limit : A brief summary of one example of your choosing. Then, analyze from a public health point of view, which type of error you think would be worse in your given example. Finally, describe how to adjust the power of your test to limit that type of..
Prepare appropriate journal entries for years ending : Prepare a lease amortization schedule for the entire lease period for the firm. (Round upyour figures to whole numbers).

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Describe an example application of polymorphism

Provide and describe an example application of polymorphism that could be used in a program solution. List and describe the class relationships.

  Describe what kind of architecture the new payroll

you have been tasked with building a payroll program for a large organization with offices spread across the united

  Write a program that declares three one dimensional

Write a program that declares three one dimensional arrays named miles, gallons, and mpg . Each array should be declared in main( ) and should be capable of holding ten double

  How would you put a empty space between output

How would you put a empty space between output, right now it prints 6 rows but how do i add a space or a "\n" for example row1 row2 row3

  Takes 100 number in an array

Write a program in c++ that takes 100 number in an array and add them and print the sum

  Write a program for keeping a course list

Write a program for keeping a course list for each student in a college. The information about each student should be kept in an object that contains the student's name and a list of courses completed by the student.

  Attribute information about an array of floating point

Write a program that contains a main function and three other functions that will return various attribute information about an array of floating point

  Calculate the potential energy of a rock with a mass of 55

calculate the potential energy of a rock with a mass of 55 kg while sitting on a cliff that is 27 m

  Write and test c program which outputs waveform

Write and test a C program which outputs waveform which switches from 10.0 kHz with a 50% duty cycle to 25.0 kHz with a 5% duty cycle every 5 seconds.

  Displays a table showing the price of silver and gold

Write a C++ program that displays a table showing the price of silver and gold. The table will have three columns. The first column will be labeled Ounces, the second labeled Silver, and the third labeled Gold.

  Write a program to crypt its input accordingly

Write a program to crypt its input according to a specified transformation scheme

  Find the sixth maclaurin polynomial for sin x

Find the sixth Maclaurin polynomial for sin x and use Chebyshev economization to obtain a lesser-degree polynomial approximation.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd