Question: write C++ program Make a copy of your Lab 2 assignment. Write two new functions mean() and standard deviation(). Modify your code to call these
write C++ program

Make a copy of your Lab 2 assignment. Write two new functions mean() and standard deviation(). Modify your code to call these functions instead of the inline code in your main(). In addition, add error checking for the user input. If the user inputs an incorrect value prompt the user to re-enter the number. The flow of your code should look something like: /** Calculate the mean of a vector of floating point numbers **/ float mean (vector& values) /** Calculate the standard deviation from a vector of floating point numbers **/ float standard deviation (vector& values) Main **/ int main() /** Prompt the user and get the number of values to enter **/ /** Get the values from the user **/ /** Display the mean and standard deviation **/ return; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
