Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals Design And Implementation

Authors: David M. Kroenke

5th Edition

B000CSIH5A, 978-0023668814

More Books

Students also viewed these Databases questions

Question

List the three clustering indices and their purpose.

Answered: 1 week ago

Question

Differentiate between hard and soft measures of service quality.

Answered: 1 week ago

Question

Be familiar with the different perspectives of service quality.

Answered: 1 week ago

Question

Describe key customer feedback collection tools.

Answered: 1 week ago