Ok...thanks Thantos. I made the changes but the compiler is kicking back errors at me. The error I get is:
c:\dev-c_~1\array.cpp: In function `int main()':
c:\dev-c_~1\array.cpp:16: invalid operands `float' and `float' to binary `operator +'
Here is my code:
float x, average, total;
for (int i=0; i<=20; i++)
for (int i=0; i < 20; i++ )
cout << "The grade of "<<x[i]<< " has a " << (x[i]-average) << "point difference from the average of "<<average<<"\n";