Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

create a histogram

  Asked By: Sean    Date: Apr 01    Category: Java    Views: 1226
  

Does anybody know how to create a java application producing a
histogram, which allows to visually inspect the frequency
distribution of a set of values. The program should read in an
arbitrary numberof integers that are in the range 1 to 100, then
produce a chart similar to the one below that indicates how many
input values fell in the range 1?0, 11?0, etc. Print one
asterisk
for each value entered.
THIS PROGRAM SHOULD BE DONE USING A TWO DIMENSIONAL ARRAY TO HOLD
THE RANGES ( LOWER VALUES AND UPPER VALUES
{{ 1,11,21 ?} { 10,20,30 …} }.

1 -10 | *****
11 -20 | **
21 -30 | *******************
31 -40 |
41 -50 | ***
51 -60 | ********
61 -70 | **
71 -80 | *****
81 -90 | *******
91 -100 | *********

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on create a histogram Or get search suggestion and latest updates.




Tagged: