Question: Write a program that queries the user for a number of times two roll two 6 - sided dice and the simulates rolling them. Count

Write a program that queries the user for a number of times two roll two 6-sided dice and the simulates rolling them. Count the number of times each value is rolled using an array, and display the percentage and frequency of each roll in a histogram similar to the following example:
Enter the number of rolls:0
** Invalid input, select a value >0
Enter the number of rolls:0
** Invalid input, select a value >0
Enter the number of rolls:5000000
histogram: C programming

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!