Find the sum and average score of eight olympic judges


Problem

Everything in this question should go in the "q2" folder. The file should be named "index.html". Olympic Judges, while experienced in their athletic field, are still humans representing their country and may have biases towards or against other countries. When a competitor is scored, usually the top score and the bottom score is thrown out to prevent a biased judge from swinging the competition. We want you to find the sum and average score of eight Olympic judges BUT with the top and bottom score thrown out of the calculation. So really it is the average score of six Olympic Judges (you exclude two judges from the calculation).

1) Make the title of this page: "(Your Name)'s Olympic Judging Calculator"

2) Put EIGHT input boxes on the screen to represent eight judges for an Olympic competition.

3) Write the following JavaScript functions. Each of these functions should use a for loop.

a) A function that finds the smallest value in a list.
b) A function that finds the largest value in a list.
c) A function that sums all values in a list.
d) A function that finds the average of a list (excluding the largest and smallest value). Call this getUnbiasedAverage.

4) As with the previous problem, each of these required functions should use appropriate parameters and use a return statement. They should not pull data directly from forms nor display values to the screen.

5) The only tricky function is the average function because it is not a traditional average function. This will be a special function that explicitly excludes the largest and smallest values.

6) This is a real-world application and the judges can input their values in any order.

7) You'll need to craft an additional primary function that pulls data from forms, calls the required functions, and prints data out to the screen.

8) Here's a hint: Your primary function (which pulls data, calls required functions and prints data to the screen) needs to call your unbiased average function.

a) Your average function (based on how I described it earlier) should call sum, smallest, and largest. From there, it can return an unbiased average.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Find the sum and average score of eight olympic judges
Reference No:- TGS03261539

Expected delivery within 24 Hours