As you increase the number of trials does the ratio of the


Rolling a die with a computer

For this problem, either modify the VPython program (OneDie PARTIAL.py) supplied, or write your own from scratch, using whatever computer language you prefer.

1. Write a program (or modify the one given) to calculate and print out the histogram of the number of times each side occurs, the deviation of this number from one-sixth of the number of trials, the frequency with which each side occurs, and the deviation of this from one sixth. Hand in a copy of the code you used.

2. Show a typical print-out of your program.

3. Run the program for various numbers of random integers, starting with a small number, say 10, and increasing to a substantially larger number. The only upper limit is that the program should not take more than about one second to run. ([Your time is valuable.) THIS IS A COMPUTATIONAL PROBLEM. ANSWERS MUST BE ACCOMPANIED BY DATA. Please hand in hard copies for all data to which you refer in your answers

4. As the number of trials increases, does the magnitude (absolute value) of the differences between the number of times a given side occurs and one-sixth of the number of trials increase or decrease?

5. As you increase the number of trials, does the ratio of the number of times each side occurs to the total number of trials approach closer to 1/6?

Request for Solution File

Ask an Expert for Answer!!
Mechanical Engineering: As you increase the number of trials does the ratio of the
Reference No:- TGS02142742

Expected delivery within 24 Hours