Question: Write a Java program that uses the class RollDie to roll a pair of dice 1000 times (or 1000 pairs of dice). The program then

Write a Java program that uses the class RollDie to roll a pair of dice 1000 times (or 1000 pairs of dice). The program then outputs the pair of numbers rolled by the dice, the sum of the numbers rolled by each pair of dice, the number of times each sum is rolled, and the sums that are rolled the maximum number of times. (Use a two-dimensional array to create 1000 pairs of dice and to store the pairs of numbers rolled by each pair of dice.)

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!