Question: using javascript, use counter-controlled repetition to solve the class-average problem and explain the code using comments I Set total to zero Set grade counter to
I Set total to zero Set grade counter to one While grade counter is less than or equal to ten Input the next grade Add the grade into the total Add one to the grade counter Set the class average to the total divided by ten 10 Print the class average
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
