Question: Write a program that simulates rolling a set of six-sided dice multiple times. The program should use a list to record the results and then

Write a program that simulates rolling a set of six-sided dice multiple times. The program should use a list to record the results and then display the results. The program should start by prompting for the number of dice to roll and the number of times to roll. The program then displays how many times each possible value was rolled. The format of the output must: The first column is the number shown on the dice when they are rolled. The brackets are only as wide as needed and the number inside the brackets is right justified. The second column is the number of times that value was rolled. This column is right justified. The last column is the percent of times that the number was rolled. The percentages are displayed with an accuracy of one decimal place. Sample Runs In these sample runs the input typed by the user is shown in green just to distinguish it from the output produced by the program. Your program does not need to provide any colored output. Using python language.

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!