The {}s are missing. The code should have them.
It is doing integer divides: 3/4 = 0
vs floating point: 3/4.0 = 0.75
Type: Posts; User: Norm
The {}s are missing. The code should have them.
It is doing integer divides: 3/4 = 0
vs floating point: 3/4.0 = 0.75
For debugging, print out the value of numberAsterisk so you can see what the code is doing.
One problem is a for statement does NOT have {}s enclosing the statement(s) that are supposed to be...
Another way to handle it would be to use the sum of the die without changing their sum to be 0 based (-2) and to make an array large enough to be indexed by 12 and leave the first two slots in the...