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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!