0% found this document useful (0 votes)
17 views6 pages

Banking System Mini Project

The document outlines a mini project for implementing a Simple Banking System using Java, focusing on basic banking operations such as account creation, deposits, withdrawals, and balance checks through a console interface. It emphasizes Object-Oriented Programming concepts, including classes, methods, and user input handling, and provides a detailed algorithm and Java code for the implementation. The project serves as a practical demonstration of OOP principles and can be further developed with additional features like file handling.

Uploaded by

mayureshhande602
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views6 pages

Banking System Mini Project

The document outlines a mini project for implementing a Simple Banking System using Java, focusing on basic banking operations such as account creation, deposits, withdrawals, and balance checks through a console interface. It emphasizes Object-Oriented Programming concepts, including classes, methods, and user input handling, and provides a detailed algorithm and Java code for the implementation. The project serves as a practical demonstration of OOP principles and can be further developed with additional features like file handling.

Uploaded by

mayureshhande602
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Mini Project of ooP & cG

Title:-

Implementation of Simple Banking System using Java

Objective :-
To develop a simple Java-based banking system that performs basic operations like
creating an account, depositing, withdrawing, and checking balance using Object-
Oriented Programming (OOP) concepts.

Problem Statement :-
To design a simple Java application that allows users to perform basic banking functions
through a text-based console interface, demonstrating the use of classes, objects, and
methods.

Theory Concept :-

1. Object-Oriented Programming (OOP): Classes and objects are used to model bank
operations.
2. Methods: Used to perform various actions such as deposit, withdraw, and check
balance.
3. Scanner Class: Allows user input from the console.
4. Loops and Switch-case: Used to build a menu-driven interface for repeated user
operations. Algorithm Steps :-

1. Start the program.


2. Create a class Bank with data members like name, account number, and balance.
3. Create methods for creating account, deposit, withdraw, check balance, and
displayinginfo.
4. In the main class, display menu options using a loop.
5. Perform the selected operation using a switch-case statement.
6. Continue until the user chooses to exit.
7. Stop the program.
Software and Hardware Requirements :-

Software: Java JDK, Notepad++, BlueJ, or VS Code


Hardware: Minimum 2GB RAM, Intel i3 or higher, Windows/Linux OS
Java Code :-
import [Link];

class Bank {
String name;
int accountNumber;
double balance;
void createAccount()
{
Scanner sc = new Scanner([Link]);
[Link]("Enter Name: ");
name = [Link]();
[Link]("Enter Account Number: ");
accountNumber = [Link]();
[Link]("Enter Initial Balance: ");
balance = [Link]();
[Link]("Account created successfully!\n");
}

void deposit() {
Scanner sc = new Scanner([Link]);
[Link]("Enter amount to deposit: ");
double amount = [Link]();
balance = balance + amount;
[Link]("Amount deposited successfully!");
}

void withdraw() {
Scanner sc = new Scanner([Link]);
[Link]("Enter amount to withdraw: ");
double amount = [Link]();
if (amount <= balance) {
balance = balance - amount;
[Link]("Amount withdrawn successfully!");
} else {
[Link]("Insufficient balance!");
}
}

void checkBalance() {

[Link]("Current Balance: ■" + balance);


}

void displayInfo() {
[Link]("\n--- Account Information ---");
[Link]("Name: " + name);
[Link]("Account Number: " + accountNumber);

[Link]("Balance: ■" + balance);


}
}

public class SimpleBank { public


static void main(String[] args) {
Scanner sc = new Scanner([Link]);
Bank b = new Bank(); int choice;

do {
[Link]("\n--- Banking Menu ---");
[Link]("1. Create Account");
[Link]("2. Deposit Money");
[Link]("3. Withdraw Money");
[Link]("4. Check Balance");
[Link]("5. Display Account Info");
[Link]("6. Exit");
[Link]("Enter your choice: ");
choice = [Link]();

switch (choice) {
case 1: [Link]();
break;
case 2: [Link]();
break;
case 3: [Link]();
break;
case 4: [Link]();
break;
case 5: [Link]();
break;
case 6: [Link]("Thank you for using our Banking System!");
break;
default:
[Link]("Invalid choice! Try again.");
}
} while (choice != 6);
}
}
Flowchart :-
Below is the flowchart representing the Simple Banking System process:

Output :-
--- Banking Menu ---
1. Create Account
2. Deposit Money
3. Withdraw Money
4. Check Balance
5. Display Account Info
6. Exit

User selects an option to perform desired banking operations.

Conclusion :-
The Simple Banking System project successfully implements core Object-Oriented
Programming concepts in Java. It allows users to perform basic operations like creating an
account, depositing, and withdrawing funds. The project helps in understanding Java class
structures, loops, and user input handling. This mini project demonstrates practical OOP
concepts and can be extended with file handling for real-world use.

Submitted By:
Name: Geeta Popat Salunke

Class: SE (Computer Engineering)

Division: A

Subject: Object Oriented Programming

You might also like