Question: Write a PYTHON program that analyzes rainfall. First, within the writeFile function, the user will input the rainfall amount for 1 2 month to a
Write a PYTHON program that analyzes rainfall.
First, within the writeFile function, the user will input the rainfall amount for month to a text file rain.txt
Next read the file data and store it as a list. Within a printList function display the rainfall amounts. Within the main function write code to calculate and display the total rainfall for the year, the average rainfall, and the month name with the highest and lowest rainfall amounts.
Data:
January inches
February inches
March inches
April inches
May inches
June inches
July inches
August inches
September inches
October inches
November inches
December inches
Submit the py files the rain.txt file, and a screenshot of the output.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
