Menu

[Solved]Button Clicked Call Function Calculates Weighted Average Grades Entered Test 1 Test 2 Exam Q37035525

When the button is clicked call a function that:

  1. Calculates the weighted average of the gradesentered: Test 1, Test 2, Exam,

Lab avg., Project, andQuiz/Homework avg.

  • Use the weights given on your lecturewebpage.
  1. Test1, Test2, Final Exam Scores inserted by using the slider,and are available in the third column of the table (which waspopulated by the onclick or onchange event handler for the slider).To use in the calculation get the value from thetd (using getElementById) not from theslider.
  2. Writes the average in the tdat the bottom of the table in the row for theScore,
  3. And writes the associated letter grade in thetd near the bottom of the table by LetterGrade using if statements and the following gradingscale:

A        100-90
B+       89-87
B         86-80
C+       79-77
C         76-70
D+       69-67
D         66-60
F          < 60

  1. If the grade is passing the background colorof the letter grade cell changes to Yellow. If thegrade is failing the background color of theletter grade cell should turn red.
  2. If the grade is an A, replace the textin the h1 to read: You got theA! in red and initalic. And if you would like (optional)set the background of the page to smiley faces.

Expert Answer


Answer to When the button is clicked call a function that: Calculates the weighted average of the grades entered: Test 1, Test 2, … . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *