how to make a program that will ignore the highest value and the lowest value, but will get the average of the remaining values..

for example: there are 6 inputted grades, then the 4 middle values should get their average.. and will ignore the highest and lowest..?

:)

how to make a program that will ignore the highest value and the lowest value, but will get the average of the remaining values..

for example: there are 6 inputted grades, then the 4 middle values should get their average.. and will ignore the highest and lowest..?

:)

write a loop that searches for the highest n lowest value.
Deduct them from the total of all.
Now divide that by total grades - 2.