LadyPeeper
Programmer
I'd like to create a program where I read four score records for one player. So each player has a set of four records, each record contains a score, along with his player number. I want to throw out the lowest score and average the three highest, then print out that average, with the player number next to it.
How do I code this? I keep going around in circles trying to figure this out how to get the three highest or even look for the lowest.
Also, if the player number for the set of four score records is out of sequence, I'd still like to print out the player number and calculate the average and to print out that there was a sequence error. I don't think that it'll be a problem figuring that out once I get the averaging thing going.
Anyway, any advice on how to approach this is greatly appreciated.
How do I code this? I keep going around in circles trying to figure this out how to get the three highest or even look for the lowest.
Also, if the player number for the set of four score records is out of sequence, I'd still like to print out the player number and calculate the average and to print out that there was a sequence error. I don't think that it'll be a problem figuring that out once I get the averaging thing going.
Anyway, any advice on how to approach this is greatly appreciated.