Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started