Question: Java eclipse IDE Objectives Practice using standard input Practice random number generation Practice using loops and comparison Background How many times do you have to
Objectives Practice using standard input Practice random number generation Practice using loops and comparison Background How many times do you have to roll a pair of dice before they come up snake eyes? You could do the experiment by rolling the dice by hand. Tasks Write a computer program that simulates rolling two dice and report the number of rolls that it makes before a pair of dice come up "snake eyes" (both roll a one) In addition, report a message whenever the simulated dice roll is "boxcars" (both roll sixes) or Yo-leven" (one five and one six) What if you wasted the user to be able to choose how many dice were used in the experiment? How might your program have to be changed? Turn In A printout of your class file, appropriately commented Upload each "java" like to the Canvas assignment for Lab 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
