i'm not sure if it's because of the way i'm structuring the parallel arrays that's causing the compiler not to run through all the possibilities, but i'm trying to assign grades by using a parallel array.
i have a break point on the first if statement, the compiler goes to that, and then returns to calculating the next average. as for the average, i just averaged it using my phone. in another part of my program i have to output the averages, so i just ran it through my calculator and compared answers. they all checked out. i forgot to mention that this is the output as of right now when i run the program
Please select one menu option
1.) Search and display student's scores by name, Enter S
2.) Find average score per student, Enter A
3.) Find score average per class, Enter C
4.) Save into a class stats file all student's names and letter grades, Enter F
5.) Print all class data, Enter P
6.) Quit, Enter Q
Selection: f
Mary Peterson : Jake Andersen : Susan Cooper : Mike Smith : Jim Blair : Clark Lee : Kennedy Davis : Kim Bronson : Sunny Hill : Sam Benson : 009FF500: ╠
009FF500: ╠
009FF500: ╠
009FF500: ╠
009FF500: ╠
009FF500: ╠
009FF500: ╠
009FF500: ╠
009FF500: ╠
009FF500: ╠
C
first of all, it doesn't format the way i want it too, and the final line of the output is correct. the last person (Sam Benson) should be receiving a 'C'.
for (int i=0; i < 10; i++)
{
cout << student_name[i] << endl;
}
okay i see my error with the formatting, that was my careless mistake. but i'm still struggling with assigning grades via using a one dimensional array