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

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  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.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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