Question: Write an application in java to simulate the rolling of two dice. The application should use an object to roll the first die and again
Write an application in java to simulate the rolling of two dice. The application should use an
object to roll the first die and again the same object to roll the second die. The sum of the
two values should then be calculated. Each die can show an integer value from 1 to 6, so
the sum of the values will vary from 2 to 12. Your application should roll the dice 100
times. Display the results in tabular format with value of both the dice and sum of these
on that turn. Also print the most frequent and least frequent sum.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
