Question: The question is to run a python program that stimulates the rolling of two 6-sided dies 1000 times. Stores the sum of the values obtained
The question is to run a python program that stimulates the rolling of two 6-sided dies 1000 times. Stores the sum of the values obtained for the two dice in a file. Creates a frequency table for the sum and stores it in a file. Calculates the median mode and mean for the sum and displays it to the screen
A. Write a Python program that does the following a. Simulates the rolling of two six-sided dice for 1000 times. (4mark b. Stores the sum of the values obtained for the two dice in a file. (4 mark c. Creates a frequency table for the sum and stores it in a file. (4 mark d. Calculates the median mode and mean for the sum and displays it to the screen (6 mark For full credit you should use functions whenever possible, All output to the file or screen should be well formatted and accompanied by indicative text, your program code should be well documented.
Step by Step Solution
3.39 Rating (158 Votes )
There are 3 Steps involved in it
Heres a Python program that accomplishes each task python import random from collections import Coun... View full answer
Get step-by-step solutions from verified subject matter experts
