Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started