Originally posted by William Barnes:
It is a little hard to tell what is happening here as atleast two of the arrays are from somewhere else.
But this I am able to see: your 'for' loop is assinging different values to the same variables. Which doesn't make much sense to me. So for example 'gradePoints[index]' is being set to a different value each time the loop runs. And will end up containing the value of 'points[i]', where 'i' is '< studentGrades.length'.
good point here and I thank you. I had not seen that yet. I put a break; statement in. That should stop the loop when the index of the letterGrade is the same as the gradePoint index. Is that correct? With your second comment. In this case the arrays are the same length throughout. This is just an exercise. Thanks for your time any further comments are appreciated.