GoConqr has a new look! Let us know what you think.

Module 7 of 16 · Media

Assign Grade exercise

Kostas Diakogiannis

Assign Grade exercise

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.

Instructions

You must submit an attempt for this quiz to progress. You can submit it after the last question.

Go to the chosen module

Feedback

What is it about?

What do you think of the new look?

How do you like it?