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".