Project 14

Clear Screen, More Arrays and Nested Loops (100 points)


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.