Question: python program 2. Dice Simulation Write a program (Dice Simulation.py) that simulates rolling a dice with six numbers for 1000 times. The program should count
python program
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 Coquitlam College CSCI 120C-Spring 2021 Rita Ester Lab 6-1 Random and Math Functions 2 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.5%). 5 rolled 168 times. (16.8%). 4 rolled 143 times. (14.299999999999999%). 3 rolled 175 times. (17.5%). 2 rolled 157 times. (15.7%). 1 rolled 172 times. (17.2%)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
