Question: JAVA Create a java program named HistogramGenerator then class called HistogramGeneratr. Create a program (in the main() method) to generate a histogram, based on the

JAVA JAVA Create a java program named "HistogramGenerator" then class called "HistogramGeneratr". Create

Create a java program named "HistogramGenerator" then class called "HistogramGeneratr". Create a program (in the main() method) to generate a histogram, based on the following input form the user: - Title Number of items -Each item, followed by the value Your program should function like the following storyboards. Please pay attention to the last one which shows the validation errors: "Happy" Path Histogram Generator by Joe Student Enter the histogram title : Favorite Languages atstudenta Enter the number of items: Enter item 1 Java Enter value 1: 14 Enter item 2 C++ Enter value 2: 7 Enter item 3 JavaScript Enter value 3: 4 Favorite Languages of Students Java JavaScript @@0 No Data Histogram Generator by Joe Student Enter the histogram title : An empty histogram Enter the number of items: 6e An empty histogram Catch non-integers (doubles), strings and values out of range Histogram Generator by Joe Student Enter the histogram title : Favorite Languages of students Enter the number of items: 100 Value is out of range. Enter the number of items [between and 10 inclusive: x Please enter an integer. 4 Enter item 1 Java Enter value 1: 18 Enter item 2 Supersized Java Maximum length is 10 characters. Try again. Super Java Enter value 2: 5 Enter item 3 C++ Enter value 3: 7 Enter item 4 JavaScript Enter value 4: 50.e Please enter an integer. 50 Value is out of range. Enter value 4 [between 0 and 25 inclusive]: 3 Favorite Languages of Students Java Super Java @aa@ JavaScript aaa

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!