Create a C++ console applications to compile the following statistics on a list of integers:
 minimum value;
 maximum value;
 median value;
 arithmetic mean;
 absolute deviation
 variance (of a discrete random variable);
 standard deviation (of a finite population);
 mode (including multi-modal lists).
 frequency distribution (fixed to 10 evenly distributed intervals);
 Quintile population means
 outlier report (displays the number of outliers greater/less than 2 and 3 standard deviations away from the mean);
Your program must handle any length of list. The list will be piped in from the command line and terminated with end-of-stream (^Z)

Recommended Answers

All 2 Replies

A good thing is to start by reading the Ruless
If you know how to get, let us say the minimum value out of a list of integers with a pencil and paper, then the coding is trivial. If you don't know how to do that, i guess you're in big trouble.

What ddanbe said. Start with the math. Then code. Then when you have some problems with the code, post it here and we may be able to help you sort it out.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.