Here's my attempt:
cout <<"Error opening file"<<endl;
total += numbers;
average = total/counter;
st_dev= sqrt((pow((numbers-average), 2))/(counter));
cout << "The Standard Deviation of all the numbers is: "<<st_dev<<endl;
Copy of the output:
Error opening file
The Standard Deviation of all the numbers is: -9.25596e+061
Press any key to continue . . .
Its not giving me the right answer. THanks in advance.
Last edited on