We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Grading Students
Grading Students
Sort by
recency
|
3978 Discussions
|
Please Login in order to post a comment
Typescript:
Go func
in typescript
const finalGrade: number[] = [] for(let i = 0; i < grades.length; i++) { const newNote = Math.ceil(grades[i] / 5) * 5 const isNewNote = newNote - grades[i] < 3 ? true : false if(grades[i] < 38 || !isNewNote) { finalGrade.push(grades[i]) } else if(isNewNote) { finalGrade.push(newNote) } } return finalGrade