Question: Java Problem 2 Write a program MyDice.java that takes an integer N, and rolls 5 fair six-sided dice, N times. Display the output of rolling
Java
Problem 2 Write a program MyDice.java that takes an integer N, and rolls 5 fair six-sided dice, N times. Display the output of rolling dice. Calculate how many times you received at least one 6. Students are required to submit MyDice.java. Marks Allocated 5 Sample output

How many times to roll the dice 10 4 2 4 5 6 4 4 3 5 5 1 1 6 6 2 6 2 2 54 1 4 6 3 2 6 1 1 5 4 2 3 6 2 1 4 5 5 5 1 5 6 4 6 2 2 6 2 2 2 6 appeared at least once 8 times
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
