Question: Write a function called grader using function expression notation with the following parameters & return value: Parameters: mark: a positive, whole number representing a percentage

Write a function called "grader" using function expression notation with the following parameters & return value: Parameters: mark: a positive, whole number representing a percentage (%) mark that was received on an assignment, ie (98, 73, 61, etc). Return value: The calculated letter grade (string) based on the provided percentage grade (mark). This will be either A (80% - 100%), B (70%-79%), C (60%-69%), D (50% - 59%) or F (0%-49%). For example, if the value of the mark parameter is 71, the function would return the string "B" (since 71 is between 70 & 79). Similarly, if the value of the mark parameter is 35, the function would return the string "F" (since 35 is between 0 and 49)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
