Question: this is exercise 3-2 in murachs javascript and jquery. i need help with creating the second loop to calculate highest score entered In this exercise,

 this is exercise 3-2 in murachs javascript and jquery. i need
help with creating the second loop to calculate highest score entered Inthis is exercise 3-2 in murachs javascript and jquery. i need help with creating the second loop to calculate highest score entered

In this exercise, you'll make an enhancement to the Test Scores application highest score in the array and displays it below the average score in the allen in figure 3-1 that uses an array: What you'll do is add a for loop that gets the highest score in the highestScore variable. After this change, the application 110 Aurels Exercise 3-2 application dialog box: Eh page to creating a dialogs OK Enhance the Test Scores If you have any problems when you're testing, remember to use Chrome's 1. Open your text editor or IDE. Then, open this HTML file and review its as Javascript_jquery exercises\ch03\scores_array.html 2. Test the application with valid entries, and note the result. Then, test it wig invalid entries, and note the result. 3. Declare a variable named highest Score at the start of the script that will be used to store the highest score. Its starting value should be zero. 4. Add a second for loop right before the alert statement at the end of the scrip This for loop should be executed once for each score in the array. Within the loop, an if statement should replace the value in the highestScore variable with the current score if that score is greater than the value in highestScore. That way, the highestScore variable will eventually store the highest score in developer tools as shown in figure 1-16 of chapter 1. the array. 5. Modify the alert statement that follows the for loop so it displays both the average score and highest score as shown above. 6. When you've got that working, comment out the second for loop. Then, modify the first for loop so it not only sums the scores but also puts the should work the same as it did after step 5. *C\Users\ianstamper\Desktop\Ch3EX2Starter scores array.html - Notepad. = Edit Search View Encoding Language Settings Tools Macro Run Plugins Window ? Hoc scores_array html EX3 1 2 1 CIDOCTYPE html>

Average Test Scores var highest Seore: var entry var average var scores - [l: var total 0; var show - "The test scores: "; - Wirst use a do-while loop to get scoren from user dot entry - prompt("Enter test scoren" + or enter 999 to end entrion", 999) entry - parseInt(entry) if (entry >- 0 46 entry

Thanks for using the Test Scores application!

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!