Here is what i have so far:

#include<cstdio>

#include<iostream>

using namespace std;

int getnum (int min, int max);

int main()

{

int numbers[10];

int i;

int k;

int sum;

cout<<"This program will take 10 entered numbers (between -1000 and 1000) and calculate";

cout<<"the sum, display the smallest and largest numbers entered, and calcualte the average number entered."<<endl;

cout<<"\nPlease enter 10 numbers between -1000 and 1000"<<endl;

for (i=0; i<10; i++)

numbers[i] = getnum(-1000,1000); //send first number entered to validation function

cout<<"\nHere are the numbers you entered:"<<endl<<endl; //tell user entered values will be displayed

for(i=0; i<10; i++)

cout<<numbers[i]<<" ";

SOMEWHERE IN THIS AREA LIES MY PROBLEM

for(i=0; i<10; i++)

sum= numbers[i] + sum;

cout<<"\n"<<sum;

system("pause");

return(0);

}

int getnum( int min, int max) //function to validate numbers are between min and max

{ //declare variables

int num; //number to be entered

do //perform test for every number entered

{

cout<<" "; //space

cin>>num; //let user enter a number

if (num<min || num>max) //if number is out of range

cout<<"\nInvalid entry, number must be between "<<min<<" and "<<max<<endl; //tell user number is out of range

}

while (num<min || num>max); //if number is in range

return(num); //return number

} //end function getnum

**Edited by rzneader, 28 November 2005 - 01:55 PM.**