Please I need help with this question and the programming language is netbeans ( we need to use netbeans to write the code . Thank you
And this is how the output should look like thank you
x Craps game pdtf x zy ownloads/Craps+gamepdf Write a simulation of the Craps dice game. Craps is a dice game that revolves around rolling two six-sided dice in an attempt to roll a particular number. Wins and losses are determined by rolling the dice. This assignment gives practice for: printing, loops, variables, if-statements or switch statements, generating random numbers, methods, and classes. Craps game rules: First roll: The first roll ("come-out roll") wins if the total is a 7 or 11. The first roll loses if the total is a 2, 3, or 12 ("craps"). If any of these five numbers is rolled on the first roll, tally the win or loss, and the round is over If none of the above is rolled on a first roll, then the value rolled is saved, i.e., a "point" is established. Subsequent rolls: Continue rolling the dice until either a 7 is rolled or the point is rolled. If the point is rolled before a 7, then tally a win. If a 7 is rolled before the point, tally a loss. Then the round is over Program specifications: 1) Run 100,000 rounds. 2) Print out information about each round. 3) Keep track of the wins and losses for all rounds played 4) Print out the total number of round wins and losses over 100,000 rounds x DCraps+game.pdt x zy 12. Evalating compound propo 1 + wnloads/Craps+game.pdf The first roll "come-out roll") wins if the total is a 7 or 11. The first roll loses if the total is a 2, 3, or 12 ('craps). If any of these five numbers is rolled on the first roll, tally the win or loss, and the round is over If none of the above is rolled on a first roll, then the value rolled is saved, i.e., a "point" is established Subsequent rolls: Continue rolling the dice until either a 7 is rolled or the point is rolled. If the point is rolled before a 7, then tally a win. Ifa 7 is rolled before the point, tally a loss. Then the round is over Program specifications: 1) Run 100,000 rounds. 2) Print out information about each round. 3) Keep track of the wins and losses for all rounds played. 4) Print out the total number of round wins and losses over 100,000 rounds. You should print rounds exactly as shown on the next page. Only print the round information for the first 10 rounds. The key task, which I suggest you do first, is to get your logic for the game working. After you've gotten this working, put this code in a loop and run it for ten or twenty rounds, keeping track of the number of wins and losses, and printing out the total wins and losses at the end After that, the final touch will be to make the detailed round printing, and then only printing the first ten rounds. Then you can increase the total rounds played to 100,000, and you're done! It may be helpful to create a class to store the game information. For instance, you could create a class called CrapsRound that holds the first roll, point, result of the round, and a toString method that prints the round information in the correct format. Then you can create a class that holds an array of CrapsRound objects to simulate running many rounds. 0 up obedg/Downloads/Craps game.pdt Round 1 Ro1l 1Diel: 5 Die2:5-Total: 10o Point is 10 Round 1 Ro11 2Diel: 5, Die2: 1-Totali Round . Roll 3 --ble1: 6 , Die2: 6-Total: 12 Round 1 . Roll 4 .. Die1: 2 , Die2: 4-. Totali 6 Round 1 Ro1l5-Diel: 2 Die2: 5--Total: 7 LOSS! 0 win(s)1 loss tes) Round 2Roll1-Diel: 1, Die2: Total: 7 WIN 1 win(s) loss (ea) Round 3 Ro11 1Diei:3 Die215-Total: B Point is Round 3 Roll 2Diel: 3 Die2: 5Total: 8 WIN 2win(s) 1 loss (es) Round 4 , Roll 1 --Die1: 6 . Die2: 4-total: 10 Point is 10 Round 4 Roll 2 Diel:6Die2: Totali 7 LosS 2 wints)2 loss (es) Round 5 RolDiel: ,Die2: 4Total: s Point is 5 Round 5 Ro1l 2 Diel: 1 Die2: 4Total: 5 KENS 3 win(s) 2 loss(es) Round6 Roll 1Diel: 2 Die2: 5-Total: 7 win(s) 2 loss(es) Point is Round 7 Roil 2 -Diel: 2 Die2: 5Total: 7 LoSS! 4 win(s) 3 loss (es) ip C/Users/obedg/Downloads/Craps+game.pdf 2 win( 1 loss(es) . Point ls 10 Round 4 Rol1 2-Diel:6Die2s-Total: LOSS 2 win(s) , 2 less ies, Round 5. Ro11 1 Diel: 1 Die2: 4Total: Point is H : Total 5 3 win(s) 2 loss tea) Round 6 Ro1l 1Diel: 2Die2: 5-Totals 4 win(s)2loss (es) Round 7Roll 1 -Dlel:1 Die2: 5 -Totai: Point is Round 7 Roll 2Diel: 2 Die2:5Total: 7 LOSS 4 wints)3 1oss (es) Round 8 Roil 1-Diel: 3 Die2: 3Total:6 Point is6 RoundRo11 2Diel: 3 Die2: 2 Total: 5 Round 8, Ro11 Die1:4.Die21 6Toral: 10 Round 8 Ro11 4 Dieli Die2: 3Total: RoundRoll s -Diel:. Die2: 2 Total: win(a)3 loss(es) Round , , Roll 1 --Diell j , Die2 : 4 .. total win(s)3 lossfes) Round 10 Ro11 1Die:: , Die2: 3 Total: Point is Round 10 . Roll 2 . Die1: 4 , Die2: 4-. Total: 8 7 win(s) 3 loss (es) OVERALL 49156 win(s)50844 l0ss(es) e a