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

Recommended Answers

All 8 Replies

Please read the rules!

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.
Just read them please.
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?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.