Your software company has been contracted to write a prototype program to perform simple statistical evaluations of integer data. Your program needs to implement the following functions:
def calcMean (scores, count)
// Where scores is an an array/list of integers and
// count is the number of items in the array
// mean is essentially the same as the average.
// return the mean of the data in scores as a float
def calcMedian (scores, count)
// Calculate the median value for the data in scores
// Median is middle value if the number of items is odd
// or the average of the middle two values if the number
// of items is even.
def calcVariance (scores, count)
// Calculate the variance value for the data in scores
// variance is determined using the formula:
the sum of the square of the values / count
- square of the sum of the values / square of the count
def calcStdDev (variance)
// Calculate the standard deviation value for the data in scores
// standard deviation is the square root of the variance
def Histogram ()
// Print a histogram of the data in scores
// the bar chart in chapter 6.10 will give you a
// good starting point.
You will also need to provide a main program to exercise the functions and a few sample data sets that you use to test the program.