Question: Assignment: Some Statistics This assignment should utilize the vector container of the STL. From the starter code of this assignment, download the plain text document

 Assignment: Some Statistics This assignment should utilize the vector container of
the STL. From the starter code of this assignment, download the plain
text document vectorTestData.txt, containing several integers, one number per line Create a

Assignment: Some Statistics This assignment should utilize the vector container of the STL. From the starter code of this assignment, download the plain text document vectorTestData.txt, containing several integers, one number per line Create a new program, spVectorHWstatistics.cpp. Include definitions for the following function prototypes-you may also create additional "helper" functions if you wish, but you are required to include the functions described below double calcMean (const vector6); The mean or average of a group of N numbers , 2, x is the sum of the numbers divided by how many there are; it is represented by double calcStandardDeviation (const vectors) The standard deviation of the same group of N numbers is given by the following formula. standard deviation- 2(r.- Note that function calcStandardDeviation should in turn call function calcMean in order to implement its formula above void displayValues (const vector) Display the contents of the vector to the screen 16 numbers per line with all numbers shown in columns of width 5 int findMaximum (const vector) establish a variable nax to hold the value of the fir t eletet the veetor setup a loop to traverse the vector - the body of the loop should contain code to do the folloving determine if max is smaller than the vector valee at the current location in the vector reset max to the new largest value return nax to the ealling funetion

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!