Question: solve this using Python: basic string operation, string slicing, testing searching and manipulation: Based on chapter 8 programming example # 1 4 , click on

solve this using Python: basic string operation, string slicing, testing searching and manipulation: Based on chapter 8 programming example #14, click on "GasPrices" above and you will find a file named "1992-2023_weekly_Gasoline_Prices.csv" with weekly averages of gas prices per gallon for the US from January, 1992 to January, 2022. Click on the file name to download.
Column 1 in the file contains a date in MM/DD/YYYY and column 2 contains the average price per gallon of gasoline for that week.
Write one or more modular python programs to perform the following calculations:
average price per year for all years: only one price will be calculated and displayed per year
average price per month per year for all years: calculate and display the average price for each month in each year
highest and lowest prices per year for all years: only two numbers displayed per year
when displaying the prices, display 20-25 per screen then pause the screen and allow the "enter" key to display the next 20-25 prices

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!