#include <iostream>
usingnamespace std;
int main()
{
float grade[10]; // 10 array slots
int count;
float total = 0;
double average;
for (count = 1; count <= 10; count++)
{
cout << "Enter grade " << count << ": ";
{
cin >> grade[count];
}
}
//printing the grades entered to be display on screen again.
cout << "You have entered the following grades: " << endl;
for(count = 1; count <= 10; count++)
total = total + grade[count];
average = total/10;
cout << "Your average of ten grades are: " << average << endl; //Output of average
system ("pause");
return 0;
}
Thank you for your feedback, however, I'm trying to find out how to get the program to output how many grades are above or equal to the average and how many are below the average.