Lab Real Statistics

Objective

Given a list of N integers, find its basic statistics (as in previous exercise), root-mean-square and standard deviation.  Your program will first ask for N, the number of integers in the list, which the user will input. Then the user will input N more numbers.

You need to use array or vector (optional, but encouraged) to store the numbers.  You also need to use functions for each calculation.

Note:

Refer to Vector spec in http://www.cplusplus.com/reference/stl/vector/

Input Format: 

Your program will loop on user input and print out basic statistics until user stops.

Output Format:

Try your imagination.

More:

<+>  Have you tried different way of getting the input numbers?  What difference does it make if the numbers are floating point?

<+>  Do you use one function for each calculation, min(), max(), avg(), sd()?  Can you do one function which does more than one calculations, such as statistics(avg, mean, sd)? 

<++> For those who are bored of array, what if all the numbers are stored in a file?  Do you still need "count"?  How about replace cin with file input?