Write the JavaScript code to add interactivity to the HTML page (provided back of the exam page) that has a user interfa
Posted: Fri May 20, 2022 11:23 am
Lab Grade Calculator
LAB1
/
LAB2
/
LAB3
/
CLASS AVERAGE
I DO NOT HAVE THAT FILE
Write the JavaScript code to add interactivity to the HTML page (provided back of the exam page) that has a user interface for entering grades on lab quizzes. You will compute the percentage of points earned and class average percentage of points. Download the attached file from black board and use the file grade.html in the exam. Lab Grade Calculator 1. When "Compute" is clicked, your JS code should use the values in the text boxes to compute the percentage and class LAB1 average. LAB2 2. You should insert the percentage into the page as a new div LAB3 added to the end (bottom) of the existing page section with the id of result. Compute CLASS AVERAGE Percentage =((labl + lab2 + lab3) * 100) / (lablMax+ lab2Max+ lab3Max) 3. If the overall percentage is 60% or more, give your newly created div a CSS class of pass; otherwise give it a class of fail. Each time the user clicks "Compute!", you will insert such a new div; this means that several divs would be there after several clicks of "Compute". 4. you should display the class average on the text box labelled class average. Class average = class percentage total /total #of students 5. All results should be formatted with 2 digits after decimal point. 6. Write your names as an HTML comment, Save the script to a folder (with your BBGroup#), compress it and upload it to blackboard. Lab Grade Calculator Lab Grade Calculator LAB1 3 LAB2 4.5 LAB3 2.5 3 6 3 LAB1 3 LAB24 LAB3 2 3 6 3 Compute CLASS AVERAGE 83.33 Compute CLASS AVERAGE 69.44 83.33 83.33 50.00 75.00