Can Anyone Help me figure this out?

/* PQ2.CPP
Programming Quiz #2
*/

#include <iostream>
#include <string>

using namespace std;

void printArr( int a[], int cnt );
int sumArr( int a[], int cnt );
double aveArr( int a[], int cnt );
int minVal( int a[], int cnt );
int maxVal( int a[], int cnt );


int main ()
{
int arr[10];
int count;
for ( count=0 ; count<5 ; count++ )
arr[count] = count*2;

printArr( arr, count );
cout << " sum of all initialized elements in array is: " << sumArr( arr, count ) << endl;
cout << " ave of all initialized elements in array is: " << aveArr( arr, count ) << endl;
cout << " the smallest number in the array is: " << minVal( arr, count ) << endl;
cout << " the largest number in the array is: " << minVal( arr, count ) << endl;
return 0;
}

// print all the initilized values in the array from front to back
void printArr( int a[], int cnt )
{
// your code here
}

// return the sum of the initilized values in the array
int sumArr( int a[], int cnt )
{
// your code here
return 0; // just to make it compile - you change as needed
}

// return the ave of the initilized values in the array
double aveArr( int a[], int cnt )
{
// your code here
return 0; // just to make it compile - you change as needed
}

// return the smallest number in the array
int minVal( int a[], int cnt )
{
// your code here
return 0; // just to make it compile - you change as needed
}

// return the largest number in the array
int maxVal( int a[], int cnt )
{
// your code here
return 0; // just to make it compile - you change as needed
}
closed account (jwkNwA7f)
What is your problem?

And, please use code tags: http://www.cplusplus.com/articles/jEywvCM9/
Please don't spam the forums with multiple threads on the same topic.
Topic archived. No new replies allowed.