Question: c++ program You are to write a program to calculate some statistics about college students heights. Your input file is Heights inches. Each input line

c++ program

You are to write a program to calculate some statistics about college students heights. Your input file is Heights inches. Each input line contains a height and the number of students that are of that height or frequency.

For example: 56 2 where this student is 56 inches tall and there were 2

57 0 no students of height 57 inches

58 3 Three students of height 58 inches and so on

59 5

You are to read in the data and compute the mean (average) , the standard deviation and skewness

The mean is sum of Xidivided by n.

The standard deviation is square root of (sum of ( Xi - mean ) 2 divided by n )

The skewness is 3 times ( mean median ) divided by the standard deviation (median is the middle value of the data.)

input file (heights.txt)

56 2 57 0 58 0 59 1 60 1 61 3 62 4 63 16 64 35 65 70 66 154 67 203 68 311 69 317 70 332 71 280 72 228 73 135 74 74 75 26 76 16 77 4 78 1 79 1 80 0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!