c++ i need some help

Write a program that uses a while loop to read in test scores until the user enters a negative number.
Print the average score after dropping the highest and lowest scores.
Print an error message if the user enters less than 3 scores.

After the loop completes, you need to have 4 pieces of information:

1. How many scores: count
2. The sum of all the scores: sum
3. The highest score: hi
4. The lowest score: lo

The answer is then: (sum - hi - lo)/(count - 2)
what is your question ?
Topic archived. No new replies allowed.