Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 . When the website visitor opens the page, a dialog box should appear asking them how many dice ( from 1 - 5 )
When the website visitor opens the page, a dialog box should appear asking them how many dice from they want to roll.
a If the user enters a value from to use that number of dice.
b If the user enters an invalid entry, display an error message and ask them again.
c If the user clicks Cancel, display a dialog box indicating that a default value of dice will be used.
d When the user has chosen an appropriate number of dice or clicked Cancel the web page should be generated displaying images for the number of dice chosen with the ids image to image and a frequency table for the possible roll values with all frequencies set to and all percentages set to
When the website visitor clicks on the Roll them bones! button, the dice will begin rolling and stop rolling second later.
a A roll consists of a new random number from to being generated every milliseconds for each die. The image for each die must be updated to represent the current random number dicepng dicepng dicepng
b When the dice are rolling, the user should be prevented from starting a new roll.
c The result of the roll must be displayed in the pRolled paragraph for example, You rolled
d The result of the roll must be added to the list of the previous ten rolls in the pPreviousTenRolls paragraph. This list only displays the most recent rolls; rolls older than are bumped from the list. The most recent roll is at the end of the list.
For each roll, the roll statistics must be updated.
a In tblStats, the frequency of each possible roll must be updated, and the frequency as a percentage of the total number of accumulated rolls must be updated.
b The total number of rolls in the pTotalRolls paragraph must be updated.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started