Gradebook

Home

Part 1

Write JavaScript code to process the provided gradebook variable to answer the questions below. Log each of the answers to the console.

  1. Display the date this data was downloaded (i.e. "2021-06-05").
  2. Display the number of students in the gradebook (i.e. 10).
  3. Loop through each student and display their name and grade, each on a new line.
  4. Use a mapping operation to arrive at an array of just the numeric grades, store the array of numbers in a new variable called grades, and display it.
  5. Using the array of grades from Question D, calculate and display the average grade (i.e. 83.64).
  6. Using the array of grades from Question D, calculate and display the median grade (i.e. 87.6).
HINT: for questions E and F, use the d3-array library.


Part 2

Write JavaScript to programmatically populate the provided table element with the gradebook data. Specifically the table should contain an initial header row of the column names (i.e. "Student ID", "Student Name", and "Final Grade"), followed by a row for each student in the gradebook.