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 12 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 7.9 inches
February 10.1 inches
March 3.4 inches
April 8.9 inches
May 6.7 inches
June 9.4 inches
July 5.9 inches
August 2.5 inches
September 3.7 inches
October 5.1 inches
November 7.2 inches
December 8.3 inches
Submit the .py file(s), 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!