Question: 1. (randomGames.py) In this script we will allow the user to play several games that involve randomness. They will be able to roll dice, or

 1. (randomGames.py) In this script we will allow the user to
play several games that involve randomness. They will be able to roll

1. (randomGames.py) In this script we will allow the user to play several games that involve randomness. They will be able to roll dice, or play Bingo. Your script you must have 4 functions: A main function A function that prints the menu of options for the screen A function that simulates the rolling of dice. o The user selects the number of dice to be rolled and the number of sides on each die (all dice have the same number of sides) Both the number of dice and the number of sides must be positive numbers The script will display each individual roll as well as the total of all the rolls A function that simulates a random Bingo draw o A Bingo draw has two related parts, a column letter and a number. o The column letter is determined by the number according to the following table Column Numbers 1 through 15 16 through 30 N 31 through 45 G 45 through 60 o 61 through 75 B 1 You may decide what, if any, parameters your functions will need. Example run: Use the numbers to select an option: 1: Roll some dice! 2: Play Some Bingo! 3: Quit What option do you choose? 5 Please pick an option from the menu! Use the numbers to select an option: 1: Roll some dice! 2: Play Some Bingo! 3: Quit What option do you choose? -2 Please pick an option from the menu! Use the numbers to select an option: 1: Roll some dice! 2: Play Some Bingo! 3: Quit What option do you choose? 1 How many dice do you want to roll? -4 Number of dice must be greater than 0! How many dice do you want to roll? 4 How many sides are on each die? -7 Number of sides must be greater than 0! How many sides are on each die? 8 Roll number 1 is 4 Roll number 2 is 8 Roll number 3 is 7 Roll number 4 is 1 Total of all rolls is: 20 Use the numbers to select an option: 1: Roll some dice! 2: Play Some Bingo! 3: Quit What option do you choose? 2 The next number in Bingo is: B5 Use the numbers to select an option: 1: Roll some dice! 2: Play Some Bingo! 3: Quit What option do you choose? 2 The next number in Bingo is: B7 Use the numbers to select an option: 1: Roll some dice! 2: Play Some Bingo! 3: Quit What option do you choose? 2 The next number in Bingo is: 660 Use the numbers to select an option: 1: Roll some dice! 2: Play Some Bingo! 3: Quit What option do you choose? 2 The next number in Bingo is: N33 Use the numbers to select an option: 1: Roll some dice! 2: Play Some Bingo! 3: Quit What option do you choose? 3

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!