Answered step by step
Verified Expert Solution
Link Copied!

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 programimage text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases In Networked Information Systems 6th International Workshop Dnis 2010 Aizu Wakamatsu Japan March 2010 Proceedings Lncs 5999

Authors: Shinji Kikuchi ,Shelly Sachdeva ,Subhash Bhalla

2010th Edition

3642120377, 978-3642120374

More Books

Students also viewed these Databases questions

Question

What has been the evolution of HRM?

Answered: 1 week ago

Question

3. What strategies might you use?

Answered: 1 week ago

Question

3. Is there opportunity to improve current circumstances? How so?

Answered: 1 week ago