Search:

Type: Posts; User: jps

Search: Search took 0.09 seconds.

  1. Thread: computeWinnings()

    by jps
    Replies
    18
    Views
    1,816

    Re: computeWinnings()

    Any time you are testing code with random, set the seed so you can compare apples to apples. Your favorite search engine will assist in setting the seed if you do not know how.




    static int...
  2. Thread: computeWinnings()

    by jps
    Replies
    18
    Views
    1,816

    Re: computeWinnings()

    Does the method getBet() prompt the user for a dollar amount? ..this method was not included in any of the posts, but seems related to your issue.
    Look at the posted while loop:

    while...
  3. Thread: computeWinnings()

    by jps
    Replies
    18
    Views
    1,816

    Re: computeWinnings()

    You will have to post the related code to get much help with it. We have no way to know what those methods do. All we can see is you call some methods from a loop and don't like what they do.
    Also...
Results 1 to 3 of 3