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

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

1 Expert Approved Answer
Step: 1 Unlock

Heres a simple Java program that simulates rolling two dice 10000 ... View full answer

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 Programming Questions!