Search:

Type: Posts; User: andreas90

Search: Search took 0.08 seconds.

  1. Replies
    7
    Views
    1,500

    Re: Dice score program

    I don't think the last posted code will compile. If I were you , I would modify the throwSetDice() method in your first post to take the expected result. So you have:

    public int throwSetDice(){
    ...
  2. Replies
    7
    Views
    1,500

    Re: Dice score program

    Hello ksahakian21!
    Since the scoreCount and diceThrows variables are ints you're using integer division and floating point is not considered. There several ways to make it work. You can just cast...
Results 1 to 2 of 2