You are viewing a single comment's thread. Return to all comments →
**java **
public static List gradingStudents(List grades) { // Write your code here for(int i=0;i37){ int num=grades.get(i)%10; int newnum=(grades.get(i)/10)*10; if(num<5 && num>2){ grades.set(i, newnum+5); } if(num>5 && num>7){ grades.set(i, newnum+10); } } } 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 →
**java **
public static List gradingStudents(List grades) { // Write your code here for(int i=0;i37){ int num=grades.get(i)%10; int newnum=(grades.get(i)/10)*10; if(num<5 && num>2){ grades.set(i, newnum+5); } if(num>5 && num>7){ grades.set(i, newnum+10); } } } return grades; }