Question: Please help with Python Code. 2 Hold - at - 2 0 Outcomes Simulate a given number of hold - at - 2 0 turns,

Please help with Python Code. 2 Hold-at-20 Outcomes
Simulate a given number of hold-at-20 turns, and report the estimated probabilities of the possible scoring outcomes.
Input
Enter a single positive integer indicating the number of turns simulated.
(Larger numbers will tend to yield better estimations.)
Output
Initially, prompt the user with Hold-at-20 turn simulations?
On the next line, print Score and Estimated Probability separated
by a tab.
After the simulations, print a table line for each score outcome that
occurred in increasing order of score. For each score outcome, print
the score, a tab, and the fraction of turn simulations that yielded that
score.
2.1 Sample Outputs
How many Hold-at-20 turn simulations?
1000000
Score Estimated Probability
00.624076
200.099659
210.095310
220.074086
230.054599
240.035313
250.016957

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!