You are viewing a single comment's thread. Return to all comments →
in java
public static List<Integer> gradingStudents(List<Integer> grades) { for(int i=0;i<grades.size();i++){ if(grades.get(i)>=38){ int r=grades.get(i)%5; int diff=Math.abs(r-5); if(diff<3) grades.set(i,grades.get(i)+diff); } } 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 →
in java