Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use Python a 1. (5 points) Write a computer program to simulate a die roll, do it 600 times and determine how many of

Please use Python

image text in transcribed

a 1. (5 points) Write a computer program to simulate a die roll, do it 600 times and determine how many of each number occurred. The intent of this program is to brush up on programming skills and to program a required piece of genetic algorithms. Your task is to write a computer program to simulate the roll of a die (1 die). Your program should roll a "die (generate randomly an integer from 1 to 6). It should do this 600 times and then count how many l's, 2's, 3's, 4's, 5's, and 6's have been rolled (i.e, generate a histogram). The histogram should be written to the screen (displayed in text form) or plotted. You may write your code in any programming language you choose though Matlab or Python are the strong suggestions. The completed code does not need to be submitted via Canvas. Turn in a hardcopy of the code in class and the results

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

Step: 3

blur-text-image

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

Database Concepts

Authors: David Kroenke, David J. Auer

3rd Edition

0131986252, 978-0131986251

More Books

Students also viewed these Databases questions

Question

LO1 Explain how the workforce is changing in unpredicted ways.

Answered: 1 week ago

Question

LO6 List the components of job descriptions.

Answered: 1 week ago