If you remain calm, and work on it, you have time.

The problem is no different from someone handing you a bunch of coins, and asking you to find the one that is worth the most, and the one that is worth the least, out of the coins. You would need to compare every coin to the coin that was the previous maximum, as well as the previous minimum, correct?

Sounds like a loop could be used here, doesn't it?

Code:

for( each coin)
{
if the coin is > the value of the maximum coin found so far,
then the coin value becomes the new max value.
if the coin is < the value of the minimum coin found so far,
then the coin values becomes the new min value.
}

The above is the basic logic you would use, but the silly computer (lacking common sense), won't know how to set the initial max and min values. With coins you could start at zero, since there are no negative values possible. With temperatures, negative values are common though. One answer is to set the maximum and minimum values to the first value you look at, before the for loop starts. Then start the for loop, comparing the second value, instead of the first one.

Remember that in C, you want to use arrays for this, and array indices start at zero, not one. So the first value is array[0], second value is array[1], etc.