Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Database Modeling With Neo4j

Authors: Ajit Singh

2nd Edition

B0BDWT2XLR, 979-8351798783

More Books

Students also viewed these Databases questions

Question

How do Excel Pivot Tables handle data from non OLAP databases?

Answered: 1 week ago