Professional Documents
Culture Documents
The Banking Management System (BMS) is a digital infrastructure that plays a vital role within
financial institutions by automating key banking functionalities. Serving as a centralized software
solution, BMS manages customer accounts, processes transactions, ensures security, and delivers
efficient customer service. Its core features include account management, transaction processing,
customer relationship management, security enforcement, and data analytics. BMS aims to enhance
operational efficiency, improve customer service, mitigate security and compliance risks, and provide
data-driven insights for informed decision-making. Leveraging technologies such as database
management systems, programming languages, security protocols, and web technologies, BMS
addresses challenges related to data security, regulatory compliance, and integration to meet the
evolving needs of the banking industry.
**Overview**
This Python program emulates a basic banking system capable of creating accounts, performing user
authentication, and executing banking activities such as checking balances, depositing funds, and
withdrawing money.
**Functionalities**
1. **create_account()**
- **Input:**
- **Output:**
2. **login()**
- **Purpose:** Allows users to log in to an existing account.
- **Input:**
- **Output:**
3. **check_balance(username, password)**
- **Purpose:** Enables users to check their account balance after a successful login.
- **Input:**
- **Output:**
- **Input:**
- **Output:**
- **Input:**
- **Output:**
6. **Main Menu**
- **Purpose:** Provides users with options to create accounts, log in, or exit.
- **Input:**
- **Output:**
- **Input:**
- **Output:**
**Usage**
- **Create Accounts:**
- Select the “Create Account” option and input a unique username, password, and initial balance to
create an account.
- **Login:**
- Choose the “Login” option and enter the username and password to access banking
functionalities.
- After a successful login, select from options such as checking balance, depositing, withdrawing, or
logging out.
- Choose the “Exit” option from the main menu to terminate the program.
**Error Handling**
**SOURCE CODE**
```python
accounts = {}
def create_account():
if username in accounts:
return
accounts[username] = {
'password': password,
'balance': initial_balance
else:
if amount <= 0:
else:
accounts[username]['balance'] += amount
else:
if amount <= 0:
else:
accounts[username]['balance'] -= amount
else:
def login():
else:
def main():
while True:
print("\nSelect an option:")
print("2. Login")
print("3. Exit")
if choice == '1':
create_account()
if logged_in:
while True:
print("\nSelect an option:")
print("2. Deposit")
print("3. Withdraw")
print("4. Logout")
if banking_choice == '1':
check_balance(username, accounts[username]['password'])
try: