# Project 14

Clear Screen, More Arrays and Nested Loops (100 points)
• Allow the user to enter "n" many floats at the keyboard.
• Your Program must have a nested loop. The outter postest loop will allow a new statistical report while the inner posttest loop will allow the input of floats.
• Using Standard Deviation Calculation Number : 1 as an example, your array must be filled in the following manner :
num[0] = 4, num[1] = 2, num[2] = 3
Using Standard Deviation Calculation Number : 2 as an example, your array must be filled in this manner :
num[0] = 245.6, num[1] = 14, num[2] = 1000.3, num[3] = 55
Using Standard Deviation Calculation Number : 3 as an example, your array must be filled in this manner :
num[0] = 25, num[1] = 25, num[2] = 25
• For each set of data, you must calculate and output the :
• data
• frequency (How many)
• sum of the squares
• mean of the squares
• square of the mean
• variance
• standard deviation
The variance is defined as :
variance = (mean of the squares) - (square of the mean)
The standard deviation is defined as :
standard deviation = square root of the variance
• After each statistical report, make sure you clear the screen. You can clear the screen by placing system("CLS") in your program and by using the stdlib.h header file.
• Make sure your program can display the sample output below.
• Your code must be well documented. Also include your name, date, project number and a breif description of the program.

```
Sample output

Standard Deviation Calculation Number : 1
===========================================

Enter number 1 : 4

Another number? (y/n): y

Enter number 2 : 2

Another number? (y/n): y

Enter number 3 : 3

Another number? (y/n): n

Statistical Report
=============================
data = 4 , 2 , 3
frequency = 3
sum of squares = 29
mean of squares = 9.66667
square of mean = 9
variance = 0.666667
standard deviation = 0.816497
=============================

Do you want to calculate another standard deviation? (y/n) : y
CLEAR SCREEN HERE

Standard Deviation Calculation Number : 2
===========================================

Enter number 1 : 245.6

Another number? (y/n): y

Enter number 2 : 14

Another number? (y/n): y

Enter number 3 : 1000.3

Another number? (y/n): y

Enter number 4 : 55

Another number? (y/n): n

Statistical Report
=============================
data = 245.6 , 14 , 1000.3 , 55
frequency = 4
sum of squares = 1.06414e+006
mean of squares = 266035
square of mean = 108060
variance = 157975
standard deviation = 397.461
=============================

Do you want to calculate another standard deviation? (y/n) : y
CLEAR SCREEN HERE

Standard Deviation Calculation Number : 3
===========================================

Enter number 1 : 25

Another number? (y/n): y

Enter number 2 : 25

Another number? (y/n): y

Enter number 3 : 25

Another number? (y/n): n

Statistical Report
=============================
data = 25 , 25 , 25
frequency = 3
sum of squares = 1875
mean of squares = 625
square of mean = 625
variance = 0
standard deviation = 0
=============================

Do you want to calculate another standard deviation? (y/n) : n

End of program.
```