- Writing a program that generates an accurate output practice - i.e proper use of remarks and structuring of the program modules
- 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