Answered step by step
Verified Expert Solution
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
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 resultsStep 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