This preview shows page 1. Sign up to view the full content.
Unformatted text preview: I had fun with this problem, thus, rather than directly linking to the code, I'm giving it to you in two versions: Code to do the simulation . This is the short form that uses nested loops, as promised, and simulates checking for the burned out bulb in each of the 250 strands of lights. Enhanced code, with analysis. This version takes those results and adds a bit of probability theory to analyze the results of the experiment. (An extension is proposed in the documentation, too.)...
View Full Document
This document was uploaded on 02/10/2011.
- Fall '10