Instructions
Welcome to the Interactive Banking Application! This program allows you to perform basic banking operations such as depositing money, withdrawing money, and checking your balance. Follow the steps below to use the application:
Step 1: Deposit Money
- When you run the program, it will prompt you to enter the amount you want to deposit.
- Enter the deposit amount and press Enter.
- You will be asked if you want to add a note for the deposit. If you choose yes, enter a note (e.g., "Salary").
- The program will display the updated balance after the deposit.
Step 2: Withdraw Money
- After depositing money, the program will prompt you to enter the amount you want to withdraw.
- Enter the withdrawal amount and press Enter.
- You will be asked if you want to add a note for the withdrawal. If you choose yes, enter a note (e.g., "Groceries").
- The program will display the updated balance after the withdrawal.
Step 3: Check Balance
- At any point, you can check your current balance by running the program.
- The program will display the final balance after all transactions.
Expected Output
Enter the amount to deposit: $500
Depositing $500.0... New Balance: $500.0
Do you want to add a note for this deposit? (yes/no): yes
Enter the note: Salary
Deposited: $500.0 | Note: Salary
Enter the amount to withdraw: $200
Withdrawing $200.0... New Balance: $300.0
Do you want to add a note for this withdrawal? (yes/no): yes
Enter the note: Groceries
Withdrawn: $200.0 | Note: Groceries
Final Balance: $300.0
Notes
- If you try to withdraw more money than your current balance, the program will display
Insufficient funds!.
- You can add notes to your transactions to keep track of the purpose of each deposit or withdrawal.
Tip: Make sure to enter valid numbers for deposit and withdrawal amounts. Handle any exceptions that may occur during the program execution.