Search:

Type: Posts; User: andreas90

Search: Search took 0.20 seconds.

  1. Replies
    9
    Views
    5,602

    [SOLVED] Re: Printing A Histogram...

    Unfortunately, i can't help you with that. I'm not at all familiar with the Eclipse IDE and how it works.
  2. Replies
    9
    Views
    5,602

    [SOLVED] Re: Printing A Histogram...

    for (total=2; total<=numbThrows; total++)
    In the above code total goes up to numbThrows. And then

    fractionOfReps = (float) frequency[total] / numbThrows;
    So when total equals 13 your program...
  3. Replies
    9
    Views
    5,602

    [SOLVED] Re: Printing A Histogram...

    Can you post the updated code that gives you this output? And also what you input in the How many dice rolls would you like to simulate? question?
  4. Replies
    9
    Views
    5,602

    [SOLVED] Re: Printing A Histogram...

    Hello Nuggets!
    I'm not sure but what if you remove frequency[total] from that code?
Results 1 to 4 of 4