skip to Main Content

Enter the stats.html text from Figure 11.7 into a new Web page, then load the pa

Enter the stats.html text from Figure 11.7 into a new Web page, then load the page in the browser to verify that it behaves as described. Add an additional text span to your stats.html page that serves as a conditional counter, keeping track of the number of times the user rolls doubles. The new SPAN element should appear below the existing one that displays the number of rolls, and should be preceded by an appropriate label. Within the RollDice function, add an if statement that checks whether the two rolls are identical and, if so, increments the doubles counter in the text span. Statistically speaking, users should obtain doubles on 1/6th their rolls. This is attributable to the fact that 6 out of the 36 possible dice combinations are doubles. After a reasonable number of rolls, is your doubles count roughly one-sixth of the total number of rolls?

GET HELP WITH THIS ASSIGNMENT TODAY

Clicking on this button will take you to our custom assignment page. Here you can fill out all the additional details for this particular paper (grading rubric, academic style, number of sources etc), after which your paper will get assigned to a course-specific writer. If you have any issues/concerns, please don’t hesitate to contact our live support team or email us right away.

Back To Top