Augment your stats.html page so that, in addition to displaying the counts for each dice total, the
Question:
Augment your stats.html page so that, in addition to displaying the counts for each dice total, the page also represents the counts as percentages of the total number of rolls. To compute each percentage, you must divide the count by the total number of rolls, then multiply by 100. For example, if 162 out of 1,000 rolls were 2s, then that's 16.2% of the rolls. For our purposes, it is sufficient to round percentages to the nearest integer value, so 162 out of 1000 would be displayed as 16%?
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Question Posted: