Question: 7/11 - Each player rolls two dice. If the total rolled is 7 or 11 they win. If they roll any other number they


7/11 - Each player rolls two dice. If the total rolled is 7 or 11 they win. If they roll any other number they must reroll until they match their original number to end their turn, however if they roll a 7 or 11 before end of their turn, they lose. Their score is the number of rolls needed to win, lowest score wins. 1. The program should welcome the user and ask how many players (1...4). 2. The program should explain briefly the rules of the game. 3. Depending on the game each player should have their "turn" and the results displayed. 4. The program should keep a record of the winner of the game. 5. After the results are displayed the user should be asked if they wish to play again. 6. If they answer 'y' then the program should repeat from the beginning. Enter player's count: 4 ROUND 1 Player 1 draws 7 Player 2 draws 6 Player 2 draws 9 Player 2 draws 6 Player 3 draws 8 Player 3 draws 7 Player 4 draws 6 Player 4 draws 3 Player 4 draws 5 Player 4 draws 9 Player 4 draws 11 Winner/s of this round: Player 1 Do you want to play again (Y/N)? y ROUND 2 Player 1 draws 5 Player 1 draws 9 Player 1 draws 11 Player 2 draws 11 Player 3 draws 3 Player 3 draws 7 Player 3 draws 3 Player 4 draws 9 Player 4 draws 6 Player 4 draws 8 Player 4 draws 3 Player 4 draws 4 Player 4 draws 9 Winner/s of this round: Player 2 Do you want to play again (Y/N)?
Step by Step Solution
3.30 Rating (147 Votes )
There are 3 Steps involved in it
Each player rolls two dice If the total rolled is 7 or 11 they win If they roll any other number the... View full answer
Get step-by-step solutions from verified subject matter experts
