Question: Create a Web page named lottery.html that repeatedly simulates PICK-4 lottery drawings until a specific sequence is obtained. The user should be able to enter

Create a Web page named lottery.html that repeatedly simulates PICK-4 lottery drawings until a specific sequence is obtained. The user should be able to enter the desired sequence in a series of four text boxes and then click a button to see how many drawings the page had to perform before their sequence came up. The appearance of your page should resemble that of Figure 13.6.

Use your page to conduct 20 different experiments, each time counting how many drawings it takes to obtain 0-0-0-0. Report your results.

Next, pick your favorite four-digit combination and conduct an additional 20 experiments. Report your results. On average, did it require a smaller number of picks to acquire this sequence than were needed to obtain 0-0-0-0? Should it?

Step by Step Solution

3.47 Rating (173 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (1 attachment)

Word file Icon

1409-C-S-O-S(1095).docx

120 KBs Word File

Students Have Also Explored These Related Operating System Questions!