Hey Guys, I'm having trouble with this one project i'm doing..I'm new to Arrays, and I'm trying to figure out where I'm going wrong, but to no avail.
My task is to ask how many scores will be input, Then using a loop, enter each test score (Must be at least 6), average and find the largest. I'm having trouble with the logistics i guess.. any advice?
#include <iostream.h>
#include <stdlib.h>
main()
{int Num, Test[What do i put here?], C, Sum=0; float Avg;
cout<<"\nHow Many Test Scores do you want to enter?- You Must enter at least 6: ";cin>>Num;
for(C=0;C<=Num;C++)
{cout<<"\n Enter Score "<<C<<": "; cin>>Test[C];
Sum=Sum + Test[C];
}
Avg=Sum/Num;
system("PAUSE");
return 0;
}