Question: Using C++ Write a program that accepts a text file from the command line in order to compute single variable statistics. The program will: a.
Using C++
Write a program that accepts a text file from the command line in order to compute single variable statistics. The program will: a. Check if the file exists before proceeding. b. Print the contents of the file to the screen 10 numbers per line. c. Compute the mean and standard deviation for these values. d. Print the mean and standard deviation to the screen. Note: 1. The program should NOT open a file that does not exist. 2. Use a function to do each of the following separately: - Print the file values to the screen. (10 values per line) - Compute the mean and standard deviation and print them. 3. Test your program with the following values containted in a numbers.txt file saved in the same directory.
7 8 8 23 -3 5 8 14 14 1 2 0 11 19 15 17 12 10 8 -1 11 -3 18 5 -2 21 24 2 23 6.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
