Create a Web page named lottery.html that repeatedly simulates PICK-4 lottery drawings until a specific sequence is

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 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?

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: