Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Grade

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_2

Step: 3

blur-text-image_3

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

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

3rd Edition

0128012757, 978-0128012758

More Books

Students also viewed these Databases questions

Question

5-8 What are the advantages and disadvantages of the BYOD movement?

Answered: 1 week ago