Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started