Question: Write a program TwoDices. java that simulates that you are rolling two dices 10000 times. At the same time, keep track of the number of
Write a program TwoDices. java that simulates that you are rolling two dices 10000 times. At the same time, keep track of the number of times you get the result (adding the dice values) 2, 3,.., 11, 12. (Use an array to store the numbers.) After the simulation, present the frequencies for the different numbers. An example of an execution: Frequency table (sum, count) for rolling two dices 10000 times 267 833 1101 1346 1690 1399 1083 862 580 284 10 11 12
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
