Question: write in C programming only for the below Write a program to simulate an experiment rolling two six-sided fair dice. Allow the user to enter
write in C programming only for the below
Write a program to simulate an experiment rolling two six-sided fair dice. Allow the user to enter the number of rolls of the dice to simulate. Determine what percentage of the time does the sum of the dots on the two dice equal 8 in the simulation? Hint: Use a function to generate random numbers in the program. A Sample Run is shown below: Input Enter a positive integer seed value: 4403 Enter number of rolls of dice: 50 Output Number of rolls: 50 Percent with sum of eight: 16.00
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
