Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Your program will process a file that contains your expenses for last month in the following six categories: Rent, Gas, Food, Clothing, Transportation, Misc Write

Your program will process a file that contains your expenses for last month in the following six categories: Rent, Gas, Food, Clothing, Transportation, Misc

Write a program that reads the data from an external file and uses matplotlib to plot a pie chart showing how you spend your money.

Sample Input/Output

Input

External text file you MUST create named month.txt. This is what the contents of my month.txt looks like (your program MUST work with this data). We basically have a file with 6 lines of data (each line a containing a number):

1000 250 350 200 375 800

NOTE: The categories (labels) will be hard-coded within the program as a Python list

 

Output

To receive full credit, your output must be similar to this...

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

Databases Illuminated

Authors: Catherine Ricardo

2nd Edition

1449606008, 978-1449606008

More Books

Students also viewed these Databases questions

Question

=+2 How can the effectiveness of global virtual teams be improved?

Answered: 1 week ago

Question

=+1 What are the major issues related to international T&D?

Answered: 1 week ago