Question: Write a program to simulate rolling three dices simultaneously. Keep rolling these three dices until the three dices show the values of 1, 2, and
Write a program to simulate rolling three dices simultaneously. Keep rolling these three dices until the three dices show the values of 1, 2, and 3 (we call this condition 1. The dices are in no particular orders to show these values in this case). Then the program shows the values of the three dices and the number of rolling so far. After that the rolling continues (and counting of the number of rolling continues too) until the first dice shows the value of 1 while condition 1 is also satisfied. Your program then shows the total number of rolling and stops. You are encouraged to simplify the logical expressions, with less operands and operators, used in your program.
It should be a java program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
