filmov
tv
Hackerrank Grading Students Problem's Solution in JavaScript

Показать описание
HackerLand University has the following grading policy:
Every student receives a grade in the inclusive range from 0 to 100 .
Any grade less than 40 is a failing grade.
Sam is a professor at the university and likes to round each student's according to these rules:
If the difference between the grade and the next multiple of 5 is less than 3, round grade up to the next multiple of 5.
If the value of grade is less than 38, no rounding occurs as the result will still be a failing grade.
Examples
Grade =84 round to (85 - 84 is less than 3)
Grade =29 do not round (result is less than 40)
Grade =57 do not round (60 - 57 is 3 or higher)
Given the initial value of grade for each of Sam's n students, write code to automate the rounding process.
Every student receives a grade in the inclusive range from 0 to 100 .
Any grade less than 40 is a failing grade.
Sam is a professor at the university and likes to round each student's according to these rules:
If the difference between the grade and the next multiple of 5 is less than 3, round grade up to the next multiple of 5.
If the value of grade is less than 38, no rounding occurs as the result will still be a failing grade.
Examples
Grade =84 round to (85 - 84 is less than 3)
Grade =29 do not round (result is less than 40)
Grade =57 do not round (60 - 57 is 3 or higher)
Given the initial value of grade for each of Sam's n students, write code to automate the rounding process.
Hackerrank Grading Students Problem's Solution in JavaScript
HackerRank Grading Students problem solution in Python Programming | Algorithms
Grading Students Hackerrank solution|| Explanation in Hindi || coding4u
HackerRank Problem: Grading Students
Grading Students Problem HackerRank - Solution Walkthrough (Python)
Grading Students -- HaskellRank #02
Grading Students problem || Hackerrank Problem Solving Series || #Hackerrank #youtube #coding #gfg
HackerRank : Grading Students
#gradingstudents #hackerrank grading students hackerrank solution in java #lovetolearn #java
HackerRank Problem solving in JavaScript (Grading Students !)
Grading Students Hackerrank Solution - java 8| Hackerrank Algorithm
Hackerrank Grading Students || Java || problem solving array
Algorithms Solved in Python | Grading Students HackerRank Solution in Python | Algorithm practice
Hackerank's grading students challenge solution in JS
Grading Students | HackerRank Walkthrough & Solution | JavaScript
HackerRank Grading Students - Solution Walkthrough (JavaScript)
GRADING STUDENTS | PROBLEM SOLVING | HACKERRANK
Solving 'Grading Students' | HackerRank Easy Challenge in JavaScript
Grading Students Hackerrank Solution in Python | Problem solving
HackerRank Problem: Grading Students|Pyhton
Hackerrank Solution - Grading Students Algorithms - Java version
Grading | HackerRank Walkthrough & Solution | JavaScript
HackerRank Çözümleri - Grading Students
HackerRank - Grading Students Solución en JavaScript (Nivel Básico)
Комментарии