Question: Hi i need help with this. Please DON'T USE LOOPS. Thank you! Question 5. A dice game Write a program which implements a dice game.

Hi i need help with this. Please DON'T USE LOOPS. Thank you!

Hi i need help with this. Please DON'T USE LOOPS. Thank you!

Question 5. A dice game Write a program which implements a dice game. Name the program YourUsernameA105 .py We.s., afer023A105 .py. The aim of the game is to reach a score as close as possible to 100 (but not over 100) in three rounds. Each round consists of throwing five random dice, the user then chooses two of the dice values where the two dice values chosen form a two digit score which is added to the user's current total, e.g., if the user first chooses a dice with the value 3 and then a dice with the value 5, 35 is added to the user's total (the first dice chosen is the tens digit and the second dice chosen is the units digit). The random dice are displayed with one space between each dice, e.g., Your dice: 3 5 3 4 1 and to choose the dice, the user enters a number 1, 2, 3, 4 or 5 indicating which of the five dice they wish to choose, i.e., the position of the dice (NOT the value of the dice). This process is repeated three times. Below is the statement which initialises the user's current score: current_total = 0 Copy this statement into your program. Below are two example outputs using the completed program (the user input is shown in a pink font). Your program must give the output in the same format as the outputs in the two examples below. Note that the top string of "*" symbols has a length of 35 and the bottom string of "*" symbols has a length of 16. *********** REACH 100 IN THREE ROUNDS! *********************************** ******** ****** **** REACH 100 IN THREE ROUNDS! ********************************* Round 1 Your dice: 2 2 1 5 2 Tens? 5 Units? 1 Dice value: 22 Round 1 Your dice: 3 3 1 5 1 Tens? 2 Units? Dice value: 35 Your current total: 22 Your current total: 35 Round 2 Your dice: 2 2 4 3 2 Tens? 4 Units? 3 Dide value: 34 Round 2 Your dice: 1 4 4 3 2 Tens? 3 Units? 4 Dice value: 43 Your current total: 56 Your current total: 78 Round 3 Your dice: 4 4 3 4 1 Tens? 2 Units? 1 Dide value: 44 Round 3 Your dice: 3 4 6 6 3 Tens? 1 Units? Dice value: 33 W * ********* **** Pinal Score: 100 Final score: 111 Assignment One

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!