Answer:
Explanation:
Lets do this in python, our function will import an array of double numbers, then it sort the array out, drop the first and last items, aka highest and lowest score. Finally, it averages the last 3 numbers by calculate the sum and divide by the number of items
def calculate_score(scores):
scores.sort() # sort it so that the lowest is at index 0 and the highest is at last index
drop_highest_lowest = scores[1:-1] # this will drop the lowest and highest number
average_score = sum(drop_highest_lowest)/len(drop_highest_lowest)
return average_score