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