This repository contains all my solutions to the Scientific Computing with Python course from FreeCodeCamp. All were made using only Python
- Arithmetic Formatter
- Time Calculator
- Budget App
- Polygon Area Calculator
- Probability Calculator
This project consisted in creating a class called Budget. It should be able to instantiate objects based on different budget categories like food, clothing, and entertainment. When objects are created, they are passed in the name of the category. The class should have an instance variable called ledger that is a list. The class should also contain differents methods that will alter the budget.
When the object is printed gives the following output:
*************Food*************
initial deposit 1000.00
groceries -10.15
restaurant and more foo -15.89
Transfer to Clothing -50.00
Total: 923.96
There is also a function called "create_spend_chart" that creates a chart showing spending from a list of categories that receives as parameters. Here is an example of the output:
Percentage spent by category
100|
90|
80|
70|
60| o
50| o
40| o
30| o
20| o o
10| o o o
0| o o o
----------
F C A
o l u
o o t
d t o
h
i
n
g
See all the requirements at FreeCodeCamp
You can try my code at Replit