Question: Write up a program using C++ that lets a user enter decimal integers for calculating some statistics. Values entered should be stored in a vector
Write up a program using C++ that lets a user enter decimal integers for calculating some statistics. Values entered should be stored in a vector object.
The program should present a menu-driven approach in which the inputting process should continue as long as the user wants. The program should calculate the minimum, maximum, mean, median, and standard deviation. The program should first sort the list in increasing order to calculate the median.
Please show your output.
* The mean formula: x = = (21- n * The standard deviation formula: $ = n-1 * For sorting the values entered, you should use the insertion-sort algorithm shown below. Insertion-Sort (a) for j + 2 to a. length do hold 0 and a[i]Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
