I edited this and hopefully this will work .
Basically I am trying to draw a histogram from the results of a dice roll. Two dice actually.
I have already written the code to determine the probabilities and now need to write a drawHor() method.
My teachers instructions were to :
1) limit size of histogram to maxLength
2) scale the data in the values array when we copy it into the instance copy of the data in the array.
Do # 2 using 2 loops. First loop find the largest values in the array "values".
Second loop multiplies each value in the values array by the max length we want for bars ( which is maxLength) and divides
by maxValue.
3)The drawHor() method needs to be in two nested loops. Outer will scan through each element of the array and the inner loop will
put an * from 1 through the value in the out loop element of the values array.
Print the values array integer at the end of each bar of asterisks.
That is my code so far. I stuck. I do not expect an answer or even code in the response. I just need to know what I should be looking at learning more about and where I am going wrong. Maybe a link or something. I have been on
java tutorial for hours and reading my book. ( Along with "head first java"). Thank you so much for your time it is truly appreciated.
p.s. Sorry Rob Camick, I run dual monitors and one is wide screen. Hope this fixes it.