Homework 7
1. 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. What percentage of the time does the sum of the dots on
the dice equal 8 in the simulation?
2. A convenient approximation for computing the factorial n! for large values of n is given by the Stirling formula:
2. A convenient approximation for computing the factorial n! for large values of n is given by the Stirling formula:


Comments
Post a Comment