I am trying to write a program that accepts an undetermined amount of doubles as input and compares those values and determines a high, low and an average. I am using -1 as a sentinel for end of input.
Attached is the code I have so far. It is not setting the minimum value and the average always includes the -1 as a value. I have compensated for the -1 in my average calculation by adding and subtracting 1.
Any help is appreciated.
Brian