Compare average monthly temperatures to the temperature collect for the
year specified. Store in a text file for each month whether there is a
warming, cooling, or normal trend.
A warming trend is apparent if the year being analyzed is three times
the standard deviation above the average temperature. Otherwise, if the
specified month is three standard deviation times below the average
temperature then there is a cooling trend. A Normal trends occurs when
the value falls within +- three times the standard deviation.
Standard deviation is a measurement of how much the values fluctuate
from measurement to measurement. These values are stored in a separate
file for each month. Use these values to determine the normal range of
Our program must open and read two files. The first file called
“sd.txt” contains the standard deviation calculated for each month. The
second called “temp.txt” contains two lists. The first is the average
temperatures and the second is the set temperatures being analyzed.
All file must reside in the working directory of the program and be
referenced relative to that location.
Standard deviation data