Question: 5. Write a program that rolles three dies with six sides. Next, the program will ask the user to reroll one of the three dies.

 5. Write a program that rolles three dies with six sides.

5. Write a program that rolles three dies with six sides. Next, the program will ask the user to reroll one of the three dies. When all dies are equal to the same number, the program will tell the user "You win" and exit the program. The program should also update the user with how many dies he/she has rerolled (in total) before each reroll. The user should also be able to quit the game at any time by selectinga sentinel value of "-1". (nsem g c prog rayn

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!