Write a program to compute the standard deviation, Programming Languages

Assignment Help:

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 functions in a program that allows you to test the functions 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".


Related Discussions:- Write a program to compute the standard deviation

Explain the goto statement - computer programming, Explain the Goto Stateme...

Explain the Goto Statement - Computer Programming? The goto statement is employed to alter the normal sequence of program execution by transferring control to some other part o

Java, Write a program that repeatedly prompts for and reads a positive inte...

Write a program that repeatedly prompts for and reads a positive integer value n and then calculates and displays the nth Fibonacci number

Define remote procedure call, Problem: (i) Define Remote Procedure Cal...

Problem: (i) Define Remote Procedure Call (RPC). (ii) Explain with diagram how RPC works? (iii) A remote procedure is uniquely defined by (a) Program number. (b)

Java reflection api, Expertsmind brings you unique solution in java assign...

Expertsmind brings you unique solution in java assignments Reflection API Uses of Reflection with java assignment help Reflection is widely used by applications which

Explain the use of sync and fsck, Problem 1 Define the architecture of ...

Problem 1 Define the architecture of UNIX operating system with appropriate diagram Problem 2 Define the term inter-process communication. What are several approaches t

Prims algorithm for minimum spanning tree, Implement the Prim's algorithm w...

Implement the Prim's algorithm with array data structure as described in slide 12 of the file 04mst.ppt. Your program should have a runtime complexity of O(n2) and should be as eff

and gate- or gate-logical-program , System.in and System.out should not be...

System.in and System.out should not be used anywhere in the programs except in main and only for testing purposes.  All calculations should be done in a method.  Note:  To use J

Write the dual of the max flow problem, 1. Write the dual of the above max-...

1. Write the dual of the above max-?ow problem. 2. Solve both problems with AMPL, and for each print the values of the vari- ables and the values of the dual variables (if a p

Write a program to illustrate the call by value, Write a Program to illustr...

Write a Program to illustrate the call by value? #include . int compute_sum(int m); int main( void) { int n=3, sum; printf("%d\n",n); /*3 is printed */ sum=compute_sum(n

Looping, You are required to develop a program that calculates the charges ...

You are required to develop a program that calculates the charges for DVD rentals, where current release cost RM3.50 and all others cost RM2.50. If a customer rents several DVDs, e

Write Your Message!

Captcha
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