Question: 2. Dice Simulation Write a program (Dice Simulation.py) that simulates rolling a dice with six numbers for 1000 times. The program should count how often
2. Dice Simulation Write a program (Dice Simulation.py) that simulates rolling a dice with six numbers for 1000 times. The program should count how often each number was rolled and calculate the corresponding percentage. In your program, you will need one counter variable for each number 1-6, as we do not know how to use a list (array) yet. Here is an example of a possible output of the program: Roll a dice 1000 times 6 rolled 185 times. (18.58). 5 rolled 168 times. (16.8%). 4 rolled 143 times. (14.2999999999999 3 rolled 175 times. (17.5%). 2 rolled 157 times. (15.7%). 1 rolled 172 times. (17.28). seudocode Display the title Initialize all six counter variables to 0. Repeat 1000 times: Generate a random number between 1 and 6
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
