Question
Your software company has been requested to provide a prototype program performing the simple statistical evaluations. You will need to implement a main program that
Your software company has been requested to provide a prototype program performing the simple statistical evaluations. You will need to implement a main program that reads the values into the array (or you could write another method to read them in), then call each of the various methods that you will convert from your previous programming project. The following methods comprise the StatPackage.
The function specifications are as follows:
Your StatPackage will accept up to 500 values as input.
Numerical values will be printed with two significant digits to the right of the decimal point.
The program will contain the following functions:
static double calcMean (int scores [], count) calculates the mean value for the values stored in the array scores mean is essentially the same as the average.
static double calcMedian (int scores [], count) calculates the median value for the values stored in the array scores median is the is middle value of the stored values.
static double calcVariance (int scores [], count) calculates the variance value for the values stored in the array scores Variance is determined by the formula:
the sum of the square of the values / count - square of the sum of the values / square of the count
static double calcStdDev (double variance) calculates the standard deviation value for the values stored in the array scores. Standard deviation is the square root of the variance.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started