You are viewing a single comment's thread. Return to all comments →
public static List<int> gradingStudents(List<int> grades) { for (int i = 0; i < grades.Count; i++) { int currentGrade = grades.ElementAt(i); if ( currentGrade >= 38 && currentGrade % 5 >= 3) { grades[i] = currentGrade + (5 - currentGrade % 5); } } return grades; }
Seems like cookies are disabled on this browser, please enable them to open this website
Grading Students
You are viewing a single comment's thread. Return to all comments →
C# Solution