{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

designreport4

# designreport4 - by the quantity of the counter minus one c...

This preview shows pages 1–2. Sign up to view the full content.

Benjamin Jones January 29, 2008 Design Report Laboratory 4 Main Module I. Get input from user a. Begin loop while current input number (floating point) is non-negative 1. Add current number to the total summation of numbers (for average) 2. Add the square of the current number to the total summation of numbers 2 (for variance) 3. If the maximum or minimum variables don’t have value A. Then set current value to be both the min and max 4. If the current number is greater the maximum A. Set current number to be the maximum 5. If the current number is less than the minimum A. Set current number to be the minimum 6. Increment the counter to indicate the number of loops (for N, where N is the numbers of numbers entered) II. Calculate statistics a. Compute average of the number set 1. Divide the total summation by the counter b. Compute variance of the number set 1. Multiply the counter by the total summation of numbers 2 then subtract the total summation squared, and divide the whole expression by the counter multiplied

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: by the quantity of the counter minus one c. Compute standard deviation 1. Take the square root of the variance III. Calculate theoretical statistics a. Compute theoretical average 1. Take half of the min added to the max b. Calculate theoretical variance 1. Take a twelfth of the square of the max minus the min c. Calculate theoretical standard deviation 1. Take the square root of the theoretical variance IV. Find differences a. Find difference of theoretical average b. Find difference of theoretical variance c. Find difference of theoretical standard deviation V. Output results a. Output title header (three tabs between titles) b. Output average, theoretical average, and difference c. Output variance, theoretical variance, and difference d. Output standard deviation, theoretical standard deviation, and difference e. Output max, max, and difference (should be 0) f. Output min, min, and difference (should be 0)...
View Full Document

{[ snackBarMessage ]}

### Page1 / 2

designreport4 - by the quantity of the counter minus one c...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online