Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

Question Run a python program that stimulates the rolling of two 6sided dies 1000 times Stores the sum of the values obtained for the two dice in a fi... 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

Data Structures and Algorithms in Python

Authors: Michael T. Goodrich, Roberto Tamassia, Michael H. Goldwasser

1st edition

1118290275, 1-118-54958-2, 978-1118290279

More Books

Students also viewed these Programming questions

Question

e. What are the programs research and clinical focus areas?

Answered: 1 week ago