Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 591 Bytes

File metadata and controls

9 lines (7 loc) · 591 Bytes

JavaScript/variables/input/conditionals/functions

Create a program that will calculate the average grade from a list of grades

  1. Write a program that lets the user enter grades (numeric)
  2. Let the user keep entering grades until they enter a -1
  3. Add each grade entered to an array
  4. Create a function that average the grades that will take the array of grades as the parameter and RETURNS the average of the grades.
  5. Notify the user with an alert of what their average grade is. Calculate the average by adding up all the numbers and dividing by the number of values entered..