Question
This for Java Please design and implement a program that creates a histogram that allows you to visually inspect the frequency distribution of a set
This for Java
Please design and implement a program that creates a histogram that allows you to visually inspect the frequency distribution of a set of values. The program should read in an arbitrary number of integers that are in the range 1 to 100 inclusive; then produce a chart similar to the one below that indicates how many input values fell in the range 1 to 10, 11 to 20, 21 to 30, and so on. Print one asterisk for each value entered.
In the above histogram three entries have been made for 11-20 numbers and one for a number in between 81-90.
Use the following:
System.out.print("1- 10\t |");
...
System.out.print("91-100\t |");
Do not change anything in the main method.
The program will terminate if a number that's too small or too large is entered.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started