Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that simulates all possible rolls of four dice and for each simulated roll, finds the sums of pairs of dice. For instance,

Write a program that simulates all possible rolls of four dice and for each simulated
roll, finds the sums of pairs of dice. For instance, if the roll is 5124, the sums are 6,
8,9,3,5, and 6. For each of the possible sums from 2 to 12, find the total number of
simulated rolls in which the sum appears and what percentage of the simulated rolls
had those sums appear. Output the totals and percentages, nicely formatted, with the
percentages formatted to one decimal place. To check your work, you should find that
the sum 2 comes up in 171 rolls, which is 13.2% of the rolls
please solve using python

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Database Systems Design Implementation And Management

Authors: Peter Robb,Carlos Coronel

5th Edition

061906269X, 9780619062699

More Books

Students also viewed these Databases questions

Question

b. Will new members be welcomed?

Answered: 1 week ago