Question: Python Format Write an application that reads the file called tempData.txt, which is located in Course Contents The headers of each column are: Day Max
Python Format
Write an application that reads the file called tempData.txt, which is located in Course Contents
The headers of each column are: Day Max Temp Min Temp Precipitation
Find and display the highest temperature for the month of May 2007.
Find and display the second highest temperature for the month of May 2007.
Calculate and display the average rainfall for the month of May 2007.
T = trace and should not be included in your calculation
Dont alter the file to change T to 0
Data displayed must be calculated programmatically.
TempData.txt shown below
1 may 2007 63.0 39.0 T 2 may 2007 66.9 43.0 0.13 3 may 2007 66.9 37.9 0.00 4 may 2007 68.0 37.9 0.00 5 may 2007 68.0 36.0 0.00 6 may 2007 62.1 39.0 0.00 7 may 2007 70.0 36.0 0.00 8 may 2007 79.0 46.0 0.00 9 may 2007 84.0 50.0 0.00 10 may 2007 82.9 63.0 0.40 11 may 2007 78.1 61.0 0.79 12 may 2007 66.0 48.9 0.00 13 may 2007 64.9 42.1 0.00 14 may 2007 71.1 36.0 0.00 15 may 2007 84.9 55.0 0.62 16 may 2007 70.0 52.0 0.30 17 may 2007 59.0 45.0 T 18 may 2007 57.9 42.1 0.00 19 may 2007 52.0 46.0 0.46 20 may 2007 72.0 51.1 0.11 21 may 2007 66.0 46.0 0.00 22 may 2007 71.1 39.0 0.00 23 may 2007 78.1 45.0 0.00 24 may 2007 87.1 54.0 0.00 25 may 2007 89.1 57.9 0.00 26 may 2007 79.0 62.1 0.00 27 may 2007 79.0 57.0 0.68 28 may 2007 73.9 55.9 0.00 29 may 2007 75.0 52.0 0.00 30 may 2007 82.9 51.1 0.00 31 may 2007 84.0 61.0 0.02
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
