Before your boss allows adjustable thermostats in the office
Before your boss allows adjustable thermostats in the office suite, he must be convinced that major temperature variation occur in different offices and within each office on different days. You\'re to write a program that allows each employee to enter the temperature at noon on each of five days and displays the highest, lowest, and average (mean) temperatures.
Using pseudocode, design a complete algorithm that accepts five daily temperature readings and displays the highest, lowest, and average (mean) temperatures. Use a loop to take the five readings. (Hint: Initialize the highest and lowest temperature variable to the first temperature that\'s read, and then compare other temperatures to see whether they\'re lower or higher.) Save your pseudocode file as tempStats.txt.
Bring your pseudocode in class on October 25th.
Solution
tempStats.txt
total = 0
min = 1000
max = -2000
for i in range(0,5):
T = input(\"Enter the temperature: \")
if T<min:
min = T
elif T>max:
max = T
total += T
mean = total / 5.0
