1
1
Fork 0
exercism/jq/grade-stats/HINTS.md
Christina Sørensen e20eb8b4c4
feat: grade-stat
2024-12-06 16:16:13 +01:00

696 B

Hints

1. Translate a numeric grade to a letter grade

2. Count the number of students for each letter grade

  • The reduce filter needs a stream to iterate over. The input is an object. Use the to_entries expression to transform the object into an array.
  • The result object must have all the possible letter grades as keys, even if no students earned that grade.
  • The += assignment will be useful.