HTML Page

Anonymous
timer Asked: Nov 16th, 2016

Question description

This HW13 will give you some practice using if statements. To start, this application should display a prompt dialog box like the one below that gets a number grade from 0 through 100:

Then, it should display an alert dialog box like the one below that displays the letter grade for that number:


To derive the letter grade, you should use this table:

A 88-100
B 80-87
C 68-79
D 60-67
F < 60

  1. Open this HTML file: convert_numberToLetterGrade_prob.html

2. In the script element, add the JavaScript code for getting the user’s entry while the entry amount isn’t 999. This should provide for multiple entries and conversions.

3. Add the JavaScript code for deriving the letter grade from the table above and displaying it in an alert dialog box.

4. If you haven’t already done so, add data validation to make sure the entry is a valid number from 0 through 100. If the entry is invalid, the application should just display the starting prompt dialog box. It doesn’t need to display a special error message.


Tutor Answer

(Top Tutor) Studypool Tutor
School: Duke University
Studypool has helped 1,244,100 students
flag Report DMCA
Similar Questions
Hot Questions
Related Tags
Study Guides

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors