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 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:
Invalid input, select a value
Enter the number of rolls:
Invalid input, select a value
Enter the number of rolls:
histogram: C programming
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
