Menu
support@nursinghomework.org
+1 714-215-3097

(Solved) : Write Program Simulate Rolling Three Dices Simultaneously Keep Rolling Three Dices Three D Q35590684

Write a program to simulate rolling three dicessimultaneously. 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 thesevalues in this case).
Then the program shows the values of the three dices and the numberof rolling so
far. After that the rolling continues (and counting of the numberof rolling
continues too) until the first dice shows the value of “1” whilecondition 1 is also
satisfied. Your program then shows the total number of rolling andstops. You are
encouraged to simplify the logical expressions, with less operandsand operators,
used in your program.
The output of your program is similar to:
Number of rolling Value1 Value2 Value3
38 3 1 2
83 2 1 3
157 3 1 2
177 1 2 3
Total number of rolling: 177
This should be for a java program.

Leave a Reply

Your email address will not be published. Required fields are marked *