Question: In Java, you will need to create two dice objects. You will roll the dice a user-specific number of times and count each time the
In Java, you will need to create two dice objects. You will roll the dice a user-specific number of times and count each time the dice roll. The number of times both dice land on 1 will need to be recorded. Last, determine the ratio of the rolls.
Required: keyboard input, methods
Example Output:
Number of rolls is: 1000
Number of times both dice landed on 1 is: 4
Ratio: .004
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
