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 programming example # click on "GasPrices" above and you will find a file named weeklyGasolinePrices.csv with weekly averages of gas prices per gallon for the US from January, to January, Click on the file name to download.
Column in the file contains a date in MMDDYYYY and column 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 per screen then pause the screen and allow the "enter" key to display the next prices
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
