(Number histogram) Design and implement an application that creates a histogram
ID: 3531178 • Letter: #
Question
(Number histogram) 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 an arbitrary number of integers that are in range 1 to 100 inclusive; then produce a chart similar to the one below that indicates how many input values fell in range 1 to 10, 11 to 20, and so on. Print one asterisk for every five values in each category. Ignore leftovers. For example, if a category had 17 values, print three asterisks in that row. If a category had 4 values, do not print any asterisks in that row.
Test your program for sets of 10, 100, and 200
Output should look
like the uploaded image
Explanation / Answer
u may check in this site http://stackoverflow.com/questions/14651326/random-number-histogram-using-ruby
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.