Exercise: Grades Histogram

Use the skills we learned in this section to read grades from a file and display a histogram.

Generate a histogram for grades

Write a program that reads grades (integers between 0–1000–100) from a text file and displays a histogram.

Example

Input

  • For values in the file grades.txt:

Get hands-on with 1200+ tech skills courses.