Question: Please include comments! Write a program that creates a histogram of random numbers from 0 to 9. Initially generate 100 random numbers. Once your program
Write a program that creates a histogram of random numbers from 0 to 9. Initially generate 100 random numbers. Once your program counts the number of random numbers for each number between 0 and 9, print a histogram that shows a graph of how many numbers where generated by printing a row of *'s one for each time that number was selected. Define a method to print the histogram whern passed the array Example: say the value of int lcounts (8, 12, 7, 14, 11, 13, 9, 12, 11, 8)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
