question archive how do i build a mark to grade converter application page in javascript? The MarkToGrad function scrapes the student mark out of the mark-input-box element and verifies it is realistic
Subject:Computer SciencePrice: Bought3
how do i build a mark to grade converter application page in javascript?
The MarkToGrad function scrapes the student mark out of the mark-input-box element and verifies it is realistic.
A mark must be a number, non negative, and less than 101.
If you enter an invalid mark, it displays message back to user in .validation-message element.
Each value entered as mark should display different message:
If user enters value above 90, Grade A should be displayed as the result.
If user enters value above 80, Grade B should be displayed as the result
If user enters value above 70, Grade C should be displayed as the result
If user enters value above 50, Grade D should be displayed as the result
If user enters value less than 50, Grade F should be displayed as the result