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
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 555 23456700 9 833 1101 6 1346 1690 8 1399 1083 9=2 10 862 11 580 12 284
Step by Step Solution
3.31 Rating (145 Votes )
There are 3 Steps involved in it
Heres a simple Java program that simulates rolling two dice 10000 ... View full answer
Get step-by-step solutions from verified subject matter experts
