Question: ****PLEASE HELP ME WITH THE AVERAGES FOR EACH MONTH! I KNOW THE YEARS BUT I NEED THE MONTHS!***** In the file gas_prices.txt you will find

****PLEASE HELP ME WITH THE AVERAGES FOR EACH MONTH! I KNOW THE YEARS BUT I NEED THE MONTHS!*****

In the file gas_prices.txt you will find weekly U. S. gas prices for 1994 through 2012. The format is :, as follows: 01-03-1994:0.992 01-10-1994:0.995 01-17-1994:1.001 01-24-1994:0.999 01-31-1994:1.005 02-07-1994:1.007 02-14-1994:1.016 02-21-1994:1.009 02-28-1994:1.004 03-07-1994:1.007 ... Write a program that reads this file and outputs a report containing the low price, average price, and high prices for each year, as well as the average prices for each month of each year, sorted by year and month, as follows: 1994: Low: $0.99, Avg: $1.08, High: $1.17 January $1.00 February $1.01 March $1.01 April $1.03 May $1.05 June $1.08 July $1.11 August $1.15 September $1.14 October $1.11 November $1.12 December $1.13 1995: etc. Redirect your report to a file named gas_report.txt and submit it along with your code in a file named gasprices.py. Before you submit, run pylint on your code until it passes with a 10.0 score. Include the following comment near the top of your file at file scope to turn off requiring all caps for global names: # pylint: disable=invalid-name If you turn off any other pylint checks, explain why.

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 Databases Questions!