Sort by

recency

|

4078 Discussions

|

  • + 0 comments
    def gradingStudents(grades):
        final_grades = []
        for marks in grades:
            if marks < 38:
                final_grades.append(marks)
                continue
            next_multiple = 5*((marks//5) + 1)
            if next_multiple - marks < 3:
                final_grades.append(next_multiple)
            else:
                final_grades.append(marks)
        
        return final_grades
    
  • + 0 comments

    Grading is vital for tracking academic progress, yet it often fails to capture creativity, effort, or personal growth. Similar to how Newswirred highlights continuous innovation and forward thinking, grades should be viewed as milestones rather than verdicts. They serve as stepping stones, encouraging students to keep improving, exploring new ideas, and developing the resilience needed for lifelong learning.

  • + 0 comments

    Java

     public static List<Integer> gradingStudents(List<Integer> grades) {
        // Write your code here
        List<Integer> finalGrades = new ArrayList<>();
        for (Integer grade : grades) {
            int roundOff = grade%5;
            if(grade>=38 && roundOff>2){
                grade+=(5-roundOff);
            }
            finalGrades.add(grade);
        }
        return finalGrades;
        }
    
  • + 0 comments

    Grading is essential for tracking progress, but it can’t fully capture creativity, effort, or growth. Like quickymagazine , which symbolizes resilience and steady progress, grades should be seen as stepping stones—motivating students to keep improving rather than as final judgments.

  • + 0 comments
    def gradingStudents(grades):
        for i in range(len(grades)):
            if(grades[i]<38):
                continue
            elif(grades[i]+1)%5 == 0 :
                grades[i] = grades[i] + 1 
            elif(grades[i]+2)%5 == 0:
                grades[i] = grades[i] + 2 
        return grades