Financial Ledger Project
Design a ledger that keeps track of credits (money added) and debits (money subtracted) and balance (amount) in an account. Create functions to easily add an entry for credits and debits, as well as a function that will display all of the entries and totals at the end
- Make an Entry class that stores a description, money amount, and whether it is a credit or a debit
- Make a Ledger class that stores the balance amount as well as a list of Entry classes.
- Make a method called add_debit that takes a description and amount as parameters and adds an entry to the ledger
- Make a method called add_credit that acts like add_debit but marks it as a credit
Here is an example of what running the code could look like after you have created a ledger called my_ledger