(H: 50) Build a web page that allows a user to enter four
exam grades (A,B,C,D) and compute the weighted average of these four
exams, AVG = (A+B+C+2*D)/5. Your web page should contain five text
objects and one button. Four of the text objects are used to enter the
exam grades, and the fifth text object will display the computed
average. The button should say "calculate", which when clicked checks
to make sure that four grades have been entered, computes the average,
and displays the answer. If all four exam grades have not been entered
display a warning message using window.alert. Your web page
should look something like:
exam 1: [ ] [CALCULATE]
exam 2: [ ]
exam 3: [ ]
exam 4: [ ]
average: [ ]
HINT: when extracting the value from text objects you will need to
convert from a string to an integer so that you can compute the
average, e.g., var exam1 =
parseInt(window.document.myform.exam1.value);