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] hold do a[i+1] + a[i] if i-1 end-while a[i+1] + hold end-for

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!