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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started