You are viewing a single comment's thread. Return to all comments →
function gradingStudents(grades) { let result=[],i; for(i=0; i<grades.length; i++){ if(grades[i]<38){ result.push(grades[i]); } else{ let mutipal5 = parseInt((grades[i]/5+1))*5; let lessthen3 = mutipal5 -grades[i]; if(lessthen3<3){ result.push(mutipal5) ; } else{ result.push(grades[i]); } } } return result }
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 →