← Return

Grading StudentsEasy

HackerLand University has the following grading policy:

Sam is a professor at the university and likes to round each student's \(grade\) according to these rules:

Examples

Given the initial value of \(grade\) for each of Sam's \(n\) students, write code to automate the rounding process.