Dice Rolling (Ex9-11, P.295)

Write a program that performs a simulation to estimate the probability of rolling five-of-a-kind in a single roll of five six-sided dice.

Hint: Follow the principle of Top-Down Design and plot the Structure Chart for this program.

Your main program may look as follows:


def main():
    printIntro()
    n = getInputs()
    count = simNIteration( n )
    printSummary( count, n )