Question: Your Program You will complete a program that calculates a contestant's score based on the scores from five judges. The highest and lowest of the

Your Program
You will complete a program that calculates a contestant's score based on the scores from five judges.
The highest and lowest of the judges' scores are thrown out, and the contestant's score is the average of
the remaining three judges' scores.
I have already written the main function for you, and the function to get user input (provided in the
AverageScore.cs file). You should not make any modifications to the Main function, or to the
getDouble0to10 function. You will write two additional functions, as specified in the comments in the
file. Note that the functions you write must match the calls to those functions from the main program.
You may not use global variables. You will turn in the completed .cs file.
The output from your program should look similar to the sample output below.
***Can you please be detailed with c# code and all the steps. I also attached the output of how code should look.***
This program calculates the contestant's score based on
scores from 5 judges. The highest and lowest scores are dropped.
Score from judge 1: ?.3
Score from judge 2: 8.5
Score from judge 3: 9.6
Score from judge 4: 3.5
Score from judge 5: 5.9
The contestant's score is: 7.23333333333333
Press any key to continue...
file:///C:/Users/lsilcox_4231/Documents/Visual Studio 2012/Projects/Demo_Project/Demo_Project/...
This program calculates the contestant's score based on
scores from 5 judges. The highest and lowest scores are dropped.
Score from judge 1: 3.5
Score from judge 2: 6.7
Score from judge 3: 8.9
Score from judge 4: 0.4
Score from judge 5: 11.0
You entered invalid input.
Enter a double between 0 and 10: hello
You entered invalid input.
Enter a double between 6 and 10: 5.9
The contestant's score is: 5.36666666666667
Press any key to continue...
////////////////////////////////
// Start of your code
//
// This function finds the minimum and maximum of a series of 5 numbers
// This function should have a void return type.
// You must use some reference parameters for this function.
// Remember that inside this class, because it is not instantiated,
// we need to define these functions as static.
//
// Write this function
//
//
// Find the average of 5 numbers excluding the minimum and maximum
// If there is more than one number with the minimum or maximum value,
// only exclude the number one time. For example, if the numbers are:
//4.56.72.37.82.3, the average is calculated using the numbers:
//4.56.72.3.
//
// This function must call the above function that finds the minimum and maximum
// values in a series of 5 numbers.
//
// This function does not use reference parameters
//
// Write this function
//
// End of your code
/////////////////////////////////
}
Your Program You will complete a program that

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 Programming Questions!