double averageScore(int array[], int size)
{
int total = 0; //To hold the total value
double average = 0;//To hold the average value
//Calculate the total number of this array
//for adding all these numbers together.
for (int count = 0; count < size; count++)
total = array[count] + total;
average = total / size; //Calculate the average number based on the total numbers and the size of the array
cout << "The average number in this array is: " << average << endl;
//Return the average number
return average;
}