Question: Using the provided text file(below) write a ( c++ program )that opens the file, counts how many real numbers it contains, and creates a dynamic
Using the provided text file(below) write a ( c++ program )that opens the file, counts how many real numbers it contains, and creates a dynamic array based on the count. Copy all the values into the array. Using the statistics library and other calculations that you may need, calculate and write the following into an output text file: total number of values, maximum, minimum, mean, median (sort the array first), standard deviation, count of how many values are within +/- 2% of the mean. Also print to the output file the first 10 sorted values of the array and the last 10 sorted values of the array. Your output file must have descriptions of all the content. (To create c++ program). ( c++program).




Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
