Question: Use lists and arrays to do the following: Page Arrignment 14: More Java Araya This assignment is warth point Dus on Saturday November 10, 2018
Use lists and arrays to do the following:


Page Arrignment 14: More Java Araya This assignment is warth point Dus on Saturday November 10, 2018 (yinigh Write an appkcaton that runs 1,000,000 games of craps and anwers the following quecmons 1) How many games are won on the first rail gecond roll, ..-twentieth rall, and after the 2) How many games are lost on the first roll, secondltwentieth roll, and afer the ) What are the chances of winning at era[Note: You should discover that craps is ons of 4) What is the average length of a game of eraps? wentiath roll wentiath roll the fatret carino gamaz. Whar do you uppo hmean Ealow isaraproduced copy ofthe Crapajava from chaptar // Craps.java // Craps class simulates the dice gane craps import javautil.Random ic class Craps // create random number generator for use in method rollDice private static final Randon rando Nubers new RandonOi enumeration with constants that represent the game status private snum Status CON TINUE, WON, LOST // constants that represent common rolls of the dice private static final int SNAKE EYES 2 private static final int TREY-3 private static final int SEVEN -7 private static final int YO_LEVEN-11 private static final int BOX CARS 12; plays one gane of craps public static void main Stringi args ) int nyPoint 0; // point if no win or loss on first ro11 Status gameStatus; / can contain CONTINUE, WON or LOST int sumofDicerollDice O First rol1 of the dice Page Arrignment 14: More Java Araya This assignment is warth point Dus on Saturday November 10, 2018 (yinigh Write an appkcaton that runs 1,000,000 games of craps and anwers the following quecmons 1) How many games are won on the first rail gecond roll, ..-twentieth rall, and after the 2) How many games are lost on the first roll, secondltwentieth roll, and afer the ) What are the chances of winning at era[Note: You should discover that craps is ons of 4) What is the average length of a game of eraps? wentiath roll wentiath roll the fatret carino gamaz. Whar do you uppo hmean Ealow isaraproduced copy ofthe Crapajava from chaptar // Craps.java // Craps class simulates the dice gane craps import javautil.Random ic class Craps // create random number generator for use in method rollDice private static final Randon rando Nubers new RandonOi enumeration with constants that represent the game status private snum Status CON TINUE, WON, LOST // constants that represent common rolls of the dice private static final int SNAKE EYES 2 private static final int TREY-3 private static final int SEVEN -7 private static final int YO_LEVEN-11 private static final int BOX CARS 12; plays one gane of craps public static void main Stringi args ) int nyPoint 0; // point if no win or loss on first ro11 Status gameStatus; / can contain CONTINUE, WON or LOST int sumofDicerollDice O First rol1 of the dice
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
