Question
***Chegg experts have given me wrong answers 2 times in a row on this, so please if you do not know how to answer this
***Chegg "experts" have given me wrong answers 2 times in a row on this, so please if you do not know how to answer this do not attempt to.
I don't mean to be rude, but it is getting very frustrating. I have now used three of my questions this month trying to get the answer for this one problem. ***
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started