Choosing the highest and lowest temperature from an array.