Hey all,
i have written a short program which outputs a basic Histogram in this form:
(0-25) ***
(26-40) ****
(41-75) **
(76-80) ****
(81-100) **
I'm required to alter my solution so as well as that it also outputs it vertically so
i'm after something like this:
* * *
* *
**
(0-25)(26-40)(41-75) ...etc
Am i right in thinking it would work if i decalre a 2D array and put the asterisks in elements (0,0) (1,0) and (2,0) and then my ranges in (0,1) (1,1) and (2,1) and then printed the array as a whole it would show everything in the right places? Or am i misunderstanding?
and im sorry about the rubbish vertical diagram there i couldnt get it to all line up but i hope you see what i mean.