Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I'm stuck on this. Need some help. In HTML , create a web page that contains a form with five text boxes labeled: Last score
I'm stuck on this. Need some help.
- In HTML, create a web page that contains a form with five text boxes labeled:
- Last score entered.
- Total of scores
- Average of scores.
- Highest score.
- Lowest score.
- In Javascript, add a button to the form. When the button is pressed, prompt the user to enter a test score between 0 and 100 =or= to enter 999 in order to end the program.
- When the user enters 999, the prompt should no longer re-appear
- If the user enters a non-numerical value, the prompt should re-appear, with an updated message indicating that there was an error in the input
- If the user enters a value less than zero or more than 100, the prompt should re-appear, with an updated message indicating the error in the input
- If the user enters a value between zero and 100:
- Update variables to store the most recently entered value, the new total, the new average, a new best score (if applicable) and a new worst score (if applicable)
- The prompt should re-appear to allow users to enter a new value
- When the loop is complete, the last entered score, the total of scores, the average score, the best score and the worst score should all display on the page
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