Refer back to the example which counted frequencies of numbers in ranges.
This is very straightforward. No hints provided.
** ** ** ** ** ** ** ** ** ** ** **
Think of how you could represent the screen inside your program. One way is to use a two dimensional array of char, which will represent the grid of characters you want to print out to show the histogram. Instead of printing straight to the screen, create the image inside this array and then print out the array.