The Banking Management System is a core Java-based project designed to manage banking operations. It provides functionalities for creating savings accounts, depositing and withdrawing funds, viewing account balances, and displaying all accounts. The application follows Object-Oriented Programming principles to ensure scalability and maintainability.
- Create a savings account with account ID, holder name, balance, and interest rate.
- Deposit funds into an account.
- Withdraw funds with validation for insufficient balance.
- Display the balance of a specific account.
- View details of all created accounts.
- Programming Language: Java
- IDE: Any Java-compatible IDE (Eclipse, IntelliJ IDEA, etc.)
- Tools: Scanner for user input, Exception handling for error scenarios
-
Bank:
- Manages all accounts.
- Has methods to create accounts, deposit, withdraw, and display accounts.
-
Account:
- Parent class for different account types.
- Contains common attributes: account ID, holder name, balance.
- Methods include deposit, withdraw, and display balance.
-
SavingsAccount:
- Inherits from
Account. - Adds an attribute for interest rate.
- Inherits from
-
BankApplication:
- Entry point of the application.
- Handles user input and coordinates with
BankandAccountclasses.
-
InsufficientFundsException:
- Custom exception class.
- Handles errors when attempting to withdraw more funds than available.
BankingManagementSystem/
|- src/
|- Bank.java
|- Account.java
|- SavingsAccount.java
|- InsufficientFundsException.java
|- BankApplication.java
|- README.md
|- .gitignore
- Clone the repository from GitHub.
git clone https://github.com/yourusername/BankingManagementSystem.git
- Open the project in your favorite Java IDE.
- Compile the project files:
javac BankApplication.java
- Run the project:
java BankApplication
-
Creating an Account:
- Select option
1from the menu. - Enter the required details: account ID, name, balance, and interest rate.
- Select option
-
Depositing Funds:
- Select option
2. - Provide the account ID and deposit amount.
- Select option
-
Withdrawing Funds:
- Select option
3. - Provide the account ID and withdrawal amount. Insufficient balance will trigger an exception.
- Select option
-
Displaying Account Balance:
- Select option
5. - Provide the account ID to view its balance.
- Select option
-
Viewing All Accounts:
- Select option
4to list all created accounts with their details.
- Select option
- Add support for current accounts.
- Implement file-based persistence to save account data across sessions.
- Add a graphical user interface (GUI) for enhanced usability.
- Include transaction history for accounts.
- Fork the repository.
- Create a new branch for your feature/bug fix.
- Commit your changes with a descriptive message.
- Push your branch and create a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
