Question: Create a Python module that simulates a bank account that accepts deposits and withdrawals. At minimum, the program should include the following functionality: The ability
Create a Python module that simulates a bank account that accepts deposits and withdrawals. At minimum, the program should include the following functionality:
The ability to input your beginning balance
Creating a loop that will take your deposits or your withdrawals and calculate a running total. Remember deposits are positive values and withdrawals are negative values.
If your final balance is negative print out that you are overdrawn and if it's positive print out that you have a balance and print out that balance.
Proper termination of your module when all deposit/withdrawal activity has completed
(Optional) I encourage you to think outside of the box and incorporate any other functions that you might think would be useful to include in a function that manages your bank account. Think about the services your own bank provides when you are handling your money and enhance your program with at least one of those capabilities (for example, requesting current account balance, showing the last n transactions, charging service fee for overdrafts, etc.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
