Answered step by step
Verified Expert Solution
Link Copied!

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 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database Administration The Essential Reference

Authors: Brian Laskey, David Kreines

1st Edition

1565925165, 978-1565925168

More Books

Students also viewed these Databases questions