Question: 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

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 Databases Questions!