Question
Create a web page called Grade.html that uses prompt() to ask for a class grade as a percentage, then uses document.write() to output the corresponding
Create a web page called Grade.html that uses prompt() to ask for a class grade as a percentage, then uses document.write() to output the corresponding letter grade using if, if-else, or switch statements. If the student is failing, it should output the number of percentage points necessary to get to a passing grade. For example, if the user enters 73 their letter grade is a C. If the user enters 52, they are told it is an F and that they must raise the grade by 8% in order to pass. If the user enters 59, they are told that it is an F and that they must raise the grade by 1% in order to pass.
I am having a hard time with what they are asking for in the second paragraph. If you could, please correct my code to something functional. Javascript only please.
Here is what I have so far:
Grade
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