Question: Dice Roll: The program simulates a two dice rolls by generating two random integers between 1 and 6. Then create a total value by adding

Dice Roll: The program simulates a two dice rolls by generating two random integers between 1 and 6. Then create a total value by adding these. The user is then prompted to guess whether the dice value is even or odd. If the user guess matches the evenness/oddness of the dice, a victory message is displayed, otherwise, a loss message is displayed.

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!