Question: Write a program that simulates the roll of two dice. Each die shall be rolled separately and then the sum of the two rolls calculated.
Write a program that simulates the roll of two dice. Each die shall be rolled separately and then the sum of the two rolls calculated. Your application will use an array to store the frequency of the sum of each roll of the pairs of dice (You are counting the number of times that the sum on two dice occurs in the 72,000 rolls). Write your program so that the pair of dice are rolled 72,000 times as a default. Give the user the user the option to roll a different number of times in the interface, if desired. When the program completes, output the frequency of each of the sums as a table.
Make sure that you use good OO design.
Include exception handling
Validate user input
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
