Need a little help
I am working on a method and would like confirmation that it a) works
b) if not, what is wrong.
setGrade receives 2 arguments. The first is the index for the array of the students grades. The first arg is the position of the grade you are setting for the student. The second arg is the letter grade. The method should set the letter grade into student grades array and also set the grade point equal for the letter grade into the grade points array. look up the grade point in the parallel array of grades.
publicvoid setGrade(int index ,char letterGrade )
{
// set studentGrades[ index ] = ?// set gradePoints[ index ] = ?}
for (int i = 0;i < studentGrades.length; ++i)
{
if (letterGrade == studentGrades[i])
{
studentGrades[i] = letterGrade;
studentGrades[index] = letterGrades[i];
gradePoints[index] = grades[i];
}
}
}
for some reason some of my brackets are showing up as lessthan greaterthan symbols. Those are not how they are in my code on my machine. Thanks for any help....

