A program that analyzes a set of numbers can be very useful. Write a program that randomly chooses 50 numbers ranging from 1 to 50, and then performs the following functions on the numbers:
Determine and print the average number.
Determine and print the maximum number.
Determine and print the minimum number.
Determine and print the range (maximum number - minimum number).
Determine and print the median (the number that occurs most often).
Display a bar graph called a histogram showing the numbers in each five unit range (i.e., 1-5,6-10,11-15, etc.). The histogram should look similar to the following output.
|