Question: Write a program in C++ that prompts the user for the name of a file that holds floating point values. Said values will be used
Write a program in C++ that prompts the user for the name of a file that holds floating point values. Said values will be used as input into an array. Plan for as many as 100 values in a file. Once the file is input, your program must be able to display the following: 1. The sum of all elements 2. The average of all elements 3. The minimum of all elements 4. The maximum of all elements 5. The standard deviation of all elements.
YOUR PROGRAM OUTPUT SHOULD LOOK LIKE THE FOLLOWING:
Enter the file name: "file"
"file" contains 12 values:
x.x x.x x.x x.x x.x
x.x x.x x.x x.x x.x
x.x x.x
The sum of all elements is: (sum)
The average of all elements is: (average)
The minimum of all elements is: (minimum)
The maximum of all elements is: (maximum)
The standard deviation of all elements is: (SD)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
