help me with this...pretty please

can anyone give a code in this problem....

a swimmer's score is determined by a panel of 6 judges who each decide a score between 0.0 and 10.0. the final score is determined by discarding the high and low scores, and averaging the remaining 4. Whrite a java program that takes 6 real command line representing the 6 scores and prints out their average, after throwing out the highest and lowest scores.

[416 byte] By [jey_lia] at [2007-11-27 9:29:02]
# 1

Your homework not ours.

You write the code not us.

When you have written some code and have a specfic question come back.

To get you started, read in the six scores and store them in an array. Sort the array. Then find the average of elements from index 1 to 4. Index 0 will be to lowest and index 5 will be the highest which you need to ignore. You do know how to calculate an average don't you?

floundera at 2007-7-12 22:36:08 > top of Java-index,Java Essentials,New To Java...
# 2
> Whrite a java program ...In all these years, I never had a single opportunity of doing this. Good luck with your assignment.
aniseeda at 2007-7-12 22:36:08 > top of Java-index,Java Essentials,New To Java...
# 3
Luckily it wasn't Writhe a Java program.
floundera at 2007-7-12 22:36:08 > top of Java-index,Java Essentials,New To Java...