# Help in a Question

 Ken Nishi · August 4, 2015 How do i solve this question .Design an algorithm that will prompt an operator for a student’s serial number and the student’s exam score out of 100. Your program is then to match the exam score to a letter grade and print the grade to the screen. Calculate the letter grade as follows: Exam score        Assigned grade 85 and above    ( HD )75 to 84               ( D )65 to 74                 ( C )50 to 64                 ( P )below 50            ( F ) Can anyone help me solve this into code,or provide a example . Thanks

## Replies

 wernich wilsenach · August 6, 2015 easiest would be to create an if...else check -> http://devdocs.io/javascript/statements/if...elseif grade is bigger than or the same as the highest, assign grade.else if it's bigger than or the same as than the second highest, assign grade.else.... etc.after that, you can have a bash at solving it with a case statement -> http://devdocs.io/javascript/statements/switch Sid wadhwa · August 15, 2015
English :
Computers :
Science :
Hindi :
Maths :
Total :