Can you make me a program that does this:
Amount of numbers:5 // any number
123 // arrays
343
424
34234
344 // random numbers output
mean: //calculates the mean
standard deviation: //calculates the standard deviation
Can you make me a program that does this:
Amount of numbers:5 // any number
123 // arrays
343
424
34234
344 // random numbers output
mean: //calculates the mean
standard deviation: //calculates the standard deviation
what do you meen?
I have wrote the first part of it
#include<iostream>
#include<math.h>
using namespace std;
float find_mean (float num1, float num2, float num3, float num4, float num5, float num6, float num7, float num8, float num9, float num10, float num0 )
{
return (num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10 + num0 )/11;
}
int main()
{
float a, b, c, d, e, f, g, h, i, j, k;
cout << "Enter eleven numbers." << endl;
cin >> a >> b >> c >> d >> e >> f >> g >> h >> i >> j >> k;
cout << " Mean: " << find_mean(a, b, c, d, e, f, g, h, i, j, k) << endl;
}
This seems to be duplicate post about the same problem as at ...
https://www.daniweb.com/software-development/cpp/threads/485784/how-to-do-standard-viariance-in-
So ... please use the above for further help ...
(i.e. ... do NOT open a 2nd thread about essentially the same problem.)
@David W: This not only seems,it is!
@ddanbe: Just saying 'is' ... in a softer way :)
Friendly folks here at Dani's place ... do not want to scare off potential fan's for Dani ... eh?