Question: **** CREATE A PYTHON PROGRAM **** You are playing a dice game. You roll a single dice six times. The best possible score would be

**** CREATE A PYTHON PROGRAM **** You are playing a dice game. You roll a single dice six times. The best possible score would be to roll all the numbers 1 through 6 within those six dice rolls. You get one point for each number in a sequence. You must roll a 1 to start the sequence otherwise you will receive zero points for that round. **** This program must contain 2 loops and an IF structure. This program is an example of sequencing. **** # You will need to generate a random number between 1 and 6 for each of the six dice rolls.

THIS IS AN EXAMLE OF THE DESIRED OUTPUT: You have rolled 1 3 2 3 6 6 #Randomly generated numbers ------------------------------ Verifying Sequence roll 1 = 1 roll 3 = 2 roll 2 = 3 ------------------------------ Score = 3 #one point per correct sequence Total Score = 3 Enter 'quit' to end:

You have rolled 4 3 2 5 6 6 #Randomly generated numbers ------------------------------ Verifying Sequence 0 points no sequence ------------------------------ Score = 0 #one point per correct sequence Total Score = 3 Enter 'quit' to end:

You have rolled 4 1 2 3 2 5 #Randomly generated numbers ------------------------------ Verifying Sequence roll 2 = 1 roll 3 = 2 roll 4 = 3 roll 1 = 4 roll 6 = 5 ------------------------------ Score = 5 #one point per correct sequence Total Score = 8 Enter 'quit' to end:

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!