web analytics

Computer Programming Rounding Rule

computer programming rounding rule
computer programming rounding rule
Please help me question Java programming.?

Two six-sided dice are rolled, the first roll of the dice in a round of Craps is called Chuck "output. A roll of 7 or 11 wins automatically, and output a circulation of 2.3 or 12 loses automatically. If 4,5,6,8,9, or 10 is rolled in Come Out, that number becomes the point. The player continues to roll up to 7 or the point is rolled. If the point is rolled, then the player wins the bet. If A 7 is rolled first, the player loses. Write a program that simulates a dice game with these rules, without human intervention. Instead of asking for a bet, the program should determine whether the player wins or loses. The program must simulate the movement of two dice and calculate the sum. Add a loop so that the program has 10,000 games. Add counters to count several times the player wins, and how many times the player loses. At the end of the 10 games .000, the probability of winning the team and the production this value.

You do not have a question that asks someone to do your homework.

Leave a Reply