Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js

F-3 Assign Grade

Write a function that accepts a number from 1 to 100 as a result of a test you gave to your students.

If the result is lower than 50 then print Not Pass! Try again next time.

If it is between 50-60 print the grade D.

If it is between 61-80 print the grade C

If it is between 81-90 print the grade B

If it is between 91-98 print the grade A

If it is 99 print 'Almost perfect'

If it is 100 'Take a day-off tomorrow'

Put different values and call the function multiple times to check your result.