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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!