Question: a) Write a Javascript Program that prompts user repeatedly to input any number between 0 to 9. If the user inputs any number which is

 a) Write a Javascript Program that prompts user repeatedly to input
any number between 0 to 9. If the user inputs any number
which is less than 0 OR greater than 9 then the program
should stop asking the user for input and display "Number not in
range". Use Starter File to Create a program save it as Q1a.html
file (Marks 16) Hint 1: use break statement with if condition Example:
if(userInput=0){ document.write("Number not in range"); break;// this stops the loop Type a
me... Example: if(userInput Display "Average score Per Player"+ average ScorePer Player+" Display

a) Write a Javascript Program that prompts user repeatedly to input any number between 0 to 9. If the user inputs any number which is less than 0 OR greater than 9 then the program should stop asking the user for input and display "Number not in range". Use Starter File to Create a program save it as Q1a.html file (Marks 16) Hint 1: use break statement with if condition Example: if(userInput=0){ document.write("Number not in range"); break;// this stops the loop Type a me... Example: if(userInput Display "Average score Per Player"+ average ScorePer Player+"
Display "Average score Per Player "+ averageScorePerPlayer+"
" Display "Player Name: "+playerOneName+"
" Display "Scored : "+ playerOneScore+"
" Display "Comparison to average Score:" + playerOneDiffAvg+"
" Display "Player Name: "+playerTwoName+"
" Display "Scored : "+ playerTwoScore+"
" Display "Comparison to average Score:" + playerTwo DiffAvg+"


" Display "Scored : "+ player ThreeScore+"
" Display "Comparison to average Score:" + playerThreeDiffAvg+"

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!