Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

We are going to continue practicing scripting by updating the JavaScript file that we have created from Self-study 3 JavaScript through the practical exercise

imageimage

We are going to continue practicing scripting by updating the JavaScript file that we have created from Self-study 3 JavaScript through the practical exercise called, "Coding Challenge 1 Who is the winner?". Coding Challenge 1 Task 1 There is a new rule to add that the winner must have a score greater than or equal to 100 points. Otherwise, there is no winner for a trophy. 2nd 3rd 4th 112 102 100 107 99 Team 1st Kangaroo 98 Gumtree 110 96 96 Team 1st 2nd 3rd 4th Kangaroo 97 109 89 90 Gumtree 89 92 92 111 There are two gymnastics teams, Kangaroos and Gumtree. They compete against each other 4 times. The winner with the highest average wins a trophy. Task 1 1) Calculate the average score for each team using the data below. 2) Compare the team's average scores to determine the winner of the competition and print it with an alert message. You need to include the condition of draw as well. Team Kangaroo Gumtree 1st 97 2nd 109 89 92 3rd 89 92 92 4th 90 111 Task 2 Now, they introduced a new rule to determine the winner. A team wins only if it has a higher score than the other team, AND the average score must be at least 100 points. You may try different conditions. Team 1st 2nd 3rd 4th Kangaroo 98 113 102 100 Gumtree 109 96 124 98

Step by Step Solution

3.44 Rating (157 Votes )

There are 3 Steps involved in it

Step: 1

To tackle this coding challenge you can follow these steps Calculate the average score for each team ... 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_2

Step: 3

blur-text-image_3

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

Elements Of Chemical Reaction Engineering

Authors: H. Fogler

6th Edition

013548622X, 978-0135486221

More Books

Students also viewed these Programming questions