Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create the standard HTML page, with a paragraph that explains the purpose of this assignment. The project needs an array of 10 coders at a

image text in transcribedimage text in transcribedimage text in transcribed

Create the standard HTML page, with a paragraph that explains the purpose of this assignment. The project needs an array of 10 coders at a SkillsUSA programming contest. In this contest, each coder will write the code for a project; it will be given a score from 1 to 10 for its style and completeness, and the time taken to write the code will be measured. The array holds objects for each coder -- name, score, and speed. The array can look like this: Coder Score Speed Anna 6.7 35 65 Mary 7.6 Greg 5.6 57 Jason 4.5 30 Grace 5.9 29 Jane 3.7 35 Paul 8.6 42 Lisa 2.5 65 Kevin 4.3 61 Sarah 4.9 52 Note that one of the names must be YOUR name. In the JavaScript file, create an array with 10 objects with that data. Write all of them to the console with an HTML template statement to verify the data. Filter the data in 2 ways. A score greater than 5.0 is good; a speed less than 60 minutes is good. If the coder had a good score AND a good speed, filter them into a new array for the "best" coders. If the coder had a good score OR a good speed, filter them into another new array for the "good" coders. Display the length of each new array on the console, and use a forEach loop to print them out. Here is an example: Elements Console Sources N This lesson is about a programming contest, using array methods. top Filter Programming Contest participants Anna scored 6.7 in 35 minutes Mary scored 7.6 in 65 minutes Greg scored 5.6 in 57 minutes Jason scored 4.5 in 30 minutes Grace scored 5.9 in 29 minutes Jane scored 3.7 in 35 minutes Paul scored 8.6 in 42 minutes Lisa scored 2.5 in 65 minutes Kevin scored 4.3 in 61 minutes Sarah scored 5.9 in 52 minutes After Filtering for BEST, array is 5 Anna scored 6.7 in 35 minutes Greg scored 5.6 in 57 minutes Grace scored 5.9 in 29 minutes Paul scored 8.6 in 42 minutes Sarah scored 5.9 in 52 minutes After Filtering for GOOD. arravis & Jason scored 4.5 in 30 minutes Grace scored 5.9 in 29 minutes Jane scored 3.7 in 35 minutes Paul scored 8.6 in 42 minutes Sarah scored 5.9 in 52 minutes Note that there are 3 coders in that data who appear in the "GOOD" array that are not eligible for the "BEST" array the only difference is the logical operator, that the score AND the speed are good versus the score OR the speed are good. Next, sort each filtered array based on the score, and display the top 3 coders, who receive the gold, silver, and bronze medals for score. Then sort each filtered array based on the speed, and display the top 3 coders, who receive the gold, silver, and bronze medals for speed. Here is an example: Elements Console Sources Networ This lesson is about a programming contest, using array methods. top O Filter Programming Contest, BEST, sorted by score Style Gold goes to Paul, score of 8.6 Style Silver goes to Anna, score of 6.7 Style Bronze goes to Grace, score of 5.9 Programming Contest, BEST, sorted by speed Speed Gold goes to Grace, speed of 29 Speed Silver goes to Anna, speed of 35

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Database Management Systems

Authors: Patricia Ward, George A Dafoulas

1st Edition

1844804526, 978-1844804528

More Books

Students also viewed these Databases questions