Question: 1)Write a java program that rolls a pair of dice 1000 times and outputs the number of times that the sum of the face values
1)Write a java program that rolls a pair of dice 1000 times and outputs the number of times that the sum of the face values of the dice is 7.
2)Run the program 5 times and record the output. Now take the average of the 5 outputs and record that. Divide this average by 1000. How closely does the result correspond to the actual probability of rolling a 7 with a pair of dice?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
