Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a Python program called expenses.py that uses matplotlib to plot a pie chart showing how much money (use percentages) is spent on the

Create a Python program called expenses.py that uses matplotlib to plot a pie chart showing how much money Car Payment Month Sep-22 Aug-22 Jul-22 Jun-22 May-22 Apr-22 Mar-22 Expenses September 2022 Savings Feb-22 Gasoline Prices $/gal $6.000 $5.500 $5.000 $4.500- $4.000 $3.500 $3.000 Texas Conventional Retail Gasoline

Create a Python program called expenses.py that uses matplotlib to plot a pie chart showing how much money (use percentages) is spent on the following expenses: Rent Gas Food Clothing Car payment Misc A sample pie plot is provided below. Save your plot as a .png file called expenses.png and submit it with the Python program. Car Payment Month Sep-22 Aug-22 Jul-22 Jun-22 May-22 Apr-22 Mar-22 Expenses September 2022 Savings Feb-22 Jan-22 Dec-21 Nov-21 Oct-21 Sep-21 17.0% 15.0% Food 30.0% 14.0% 10.0% 3.537 3.875 4.463 4.956 4.452 4.08 4.215 3.52 3.281 3.233 3.338 3.256 3.139 8.0% 6.0% 2) (60 Points) Texas Gasoline Prices Line Chart The following table shows the average monthly gasoline price per gallon in Texas from September 2021 until September 2022 for midgrade, premium, and regular gasoline. Use matplotlib, write a Python program called gas_prices_tx.py that will plot the data as a line chart. A sample plot is shown below. Save your plot as a .png file called gas_prices_tx.png and submit it with the Python program. Note that the data in the table is obtained from https://www.eia.gov/dnav/pet/PET PRI GND DCUS NUS M.htm and is listed from September 2022 going back to September 2021. Texas Midgrade Conventional Retail Gasoline Prices $/gal Rent Misc Texas Premium Conventional Retail Gasoline Prices $/gal Clothing 3.871 4.187 4.781 5.266 4.728 4.369 4.5 3.801 3.564 3.515 3.609 3.537 3.421 Gas Texas Regular Conventional Retail Gasoline Prices $/gal 3.141 3.467 4.069 4.577 4.076 3.703 3.856 3.177 2.937 2.88 2.991 2.912 2.79 Gasoline Prices $/gal $6.000 $5.500 $5.000 $4.500- $4.000 $3.500 $3.000 Texas Conventional Retail Gasoline Prices $/gal 2021-2022 Sep-21 midgrade premium regular Oct-21 Nov-21 Dec-21 Jan-22 Feb-22 Mar-22 Month Apr-22 May-22 Jun-22 Highest recorded gas price in June all grades Jul-22 Aug-22 Sep-22

Step by Step Solution

3.32 Rating (155 Votes )

There are 3 Steps involved in it

Step: 1

I can guide you on creating the Python programs for both expenses and gas prices Please note that yo... 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

Advanced Financial Accounting

Authors: Thomas Beechy, Umashanker Trivedi, Kenneth MacAulay

6th edition

013703038X, 978-0137030385

More Books