Design and implement an application that creates a histogram that allows you to
visually inspect the frequency distribution of a set of values.
The program should generate 200 random integers in the range 1 through 100
(inclusive) and store these into an array.
Produce a chart EXACTLY like the one below that indicates how many values
fell in the range 1 to 10, 11 to 20, and so on. Print one asterisk for each value entered. Notice the spacing for everything.
Range # Found Chart
--------- ---------- -------------------------------------------
1 - 10 | 28 | ****************************
11 - 20 | 18 | ******************
21 - 30 | 21 | *********************
31 - 40 | 26 | **************************
41 - 50 | 23 | ***********************
51 - 60 | 7 | *******
61 - 70 | 18 | ******************
71 - 80 | 24 | ************************
81 - 90 | 14 | **************
91 - 100 | 22 | **********************
I have a degree in computer Science, I made a lot of visual histograms (in pyhton), and I've been working with rails since the third version, I can do what you need fast.