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

  Write some code that puts a zero in every element of q

Given a two-dimensional array of integers named q, with 2 rows and 4 columns, write some code that puts a zero in every element of q. Declare any variables needed to help you.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Write a recursive definition in sml to reverse

Write a recursive definition in SML to reverse a list of elements and multiply all elements with 2.

  A constructor that constructs a rectangle2d

A constructor that constructs a Rectangle2D with specified points as coordinates.A no-argument constructor that creates the rectangle with points (0, 0), (5, 5) and (0, 5) and

  A palindrome is a number

A palindrome is a number or text phrase that reads the same backward as forward. For example, each of the following five-digit integers is a palindrome: 12321, 55555, 34543 and 11611. Write a program that reads in a five-digit integer and determines ..

  Prepare a businesspartner class that contains a company

prepare a businesspartner class that contains a company name first name and a telephone number. prepare a contacts

  Write a program that takes a positive integer

Write a program that takes a positive integer from the user and prints the rightmost digit of that integer. This is a sample output: Enter an integer: 1247

  Braces for blocks of code

C-- should have braces for blocks of code, an if statement, while statement, and a double, int, and character. Each statement ends with a semi-colon and you must have a main routine

  User that will be asked to input the time

Write a code for the following C++ problem. We will have a user that will be asked to input the time of a train traveling in terms of minutes and this minutes is a non-negative integer.

  Program to translates letter grade into number grade

In C++ (should be able to compile in Visual Studio 2010): Write a program to translates letter grade into number grade. Letter grades are A,B,C,D and F, possibly followed by a + or -.

  A typical individual who commits who commits hate crimes

a typical individual who commits who commits hate crimes whether it is against or aimed at the gaylesbian community

  Native method with deadlock detection and recovery

The naïve method with deadlock avoidance and the naïve method with deadlock detection and recovery - what will you measure and compare in order to determine the winner or which is better

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