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

3
Contributors
8
Replies
30
Views
3 Years
Discussion Span
Last Post by David W

what do you meen?

The rules state that we don't provide homework help unless you show some effort.
The rules state that you don't must post the same question twice.
And if your memory doesn't serve you well, just have a look here.

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;
}
``````

array tutorial
Study this carefully, I will ask questions about it next week when I come back!

@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?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.