Annexure-I
A MICRO PROJECT ON " Banking Application in Java"
1.0 Aims/Benefits of the micro project
To learn basic java programming for making applications.
To get Information about java programming syntax.
Gain Knowledge about how to make banking applications in java.
2.0 Course outcome addressed.
a. Develop programs using Object Oriented methodology in Java.
b. Apply the concept of inheritance for code reusability
3.0 Proposed methodology
1. Focused on the selection of an appropriate topic for the micro-project.
2. Select the topic i.e. To Prepare a report on a mini-banking application in
Java.
3. Brief study on our topic.
4. Gather all information based on the topic of the micro project.
5. Analysis and study of our topic in detail.
6. Following all the above methodologies we successfully completed our
microproject.
4.0 Action Plan
Plan Plan Name of
Sr.
Detail of activity start finish responsible
No.
date date team members
Searching the topic for micro-
1
project
collect information from the
2
internet and textbook
collect information from the JPR
3 Java Programming 22412 Manual
reference book & Manual.
4 arrange all information in ms word
Prepare a report on it using MS
5
word
6 print micro project
5.0 Resources used
Sr. no. Name of resource material Specifications Quantity
1 Computer System 16 GB RAM, Windows 11 OS 1
2 Internet Youtube / geek4geek
JPR Java Programming
3 textbook/manual 1
22412
annexure-II
Micro-Project Report
A MICRO PROJECT ON "Banking Application in Java"
1.0 Brief Introduction/Rationale
Java is platform independent, open-source object-oriented programming language enriched with free
and open-source libraries. In the current industrial scenario, Java has broad industry support and is
a prerequisite with many allied technologies like Advanced Java, Java Server Pages, and Android
Application Development. Thus, current industrial trends necessitate acquiring Java knowledge for
Computer Engineering and Information Technology graduates. This course develops the necessary
skills in students to apply object-oriented programming techniques in Java so that students will be
able to develop complete applications using core Java.
Mini Banking Application Using Java Programming
we will understand how to develop a mini-application for a banking system in Java. In this program,
we will add some basic functionalities of a bank account like a deposit of amount, withdrawal of
amount, etc.
Originally, the program accepts the number of customers we require to add and adds the customer
and account details thus. Further, it displays a series of menus to work over the accounts.
The series of menus displayed are as follows:
1. Display all account details
2. Search by account number
3. Deposit the amount
4. Withdraw the amount
5. Exit
Code
JAVA
import java.util.Scanner;
class BankDetails {
private String accno;
private String name;
private String acc_type;
private long balance;
Scanner sc = new Scanner(System.in);
//method to open new account
public void openAccount() {
System.out.print("Enter Account No: ");
accno = sc.next();
System.out.print("Enter Account type: ");
acc_type = sc.next();
System.out.print("Enter Name: ");
name = sc.next();
System.out.print("Enter Balance: ");
balance = sc.nextLong();
//method to display account details
public void showAccount() {
System.out.println("Name of account holder: " + name);
System.out.println("Account no.: " + accno);
System.out.println("Account type: " + acc_type);
System.out.println("Balance: " + balance);
//method to deposit money
public void deposit() {
long amt;
System.out.println("Enter the amount you want to deposit: ");
amt = sc.nextLong();
balance = balance + amt;
}
//method to withdraw money
public void withdrawal() {
long amt;
System.out.println("Enter the amount you want to withdraw: ");
amt = sc.nextLong();
if (balance >= amt) {
balance = balance - amt;
System.out.println("Balance after withdrawal: " + balance);
} else {
System.out.println("Your balance is less than " + amt + "\
tTransaction failed...!!" );
//method to search an account number
public boolean search(String ac_no) {
if (accno.equals(ac_no)) {
showAccount();
return (true);
return (false);
public class BankingApp {
public static void main(String arg[]) {
Scanner sc = new Scanner(System.in);
//create initial accounts
System.out.print("How many number of customers do you want to input?
");
int n = sc.nextInt();
BankDetails C[] = new BankDetails[n];
for (int i = 0; i < C.length; i++) {
C[i] = new BankDetails();
C[i].openAccount();
// loop runs until number 5 is not pressed to exit
int ch;
do {
System.out.println("\n ***Banking System Application***");
System.out.println("1. Display all account details \n 2. Search by
Account number\n 3. Deposit the amount \n 4. Withdraw the amount \n 5.Exit ");
System.out.println("Enter your choice: ");
ch = sc.nextInt();
switch (ch) {
case 1:
for (int i = 0; i < C.length; i++) {
C[i].showAccount();
break;
case 2:
System.out.print("Enter account no. you want to
search: ");
String ac_no = sc.next();
boolean found = false;
for (int i = 0; i < C.length; i++) {
found = C[i].search(ac_no);
if (found) {
break;
if (!found) {
System.out.println("Search failed! Account doesn't
exist..!!");
break;
case 3:
System.out.print("Enter Account no. : ");
ac_no = sc.next();
found = false;
for (int i = 0; i < C.length; i++) {
found = C[i].search(ac_no);
if (found) {
C[i].deposit();
break;
if (!found) {
System.out.println("Search failed! Account doesn't
exist..!!");
break;
case 4:
System.out.print("Enter Account No : ");
ac_no = sc.next();
found = false;
for (int i = 0; i < C.length; i++) {
found = C[i].search(ac_no);
if (found) {
C[i].withdrawal();
break;
}
}
if (!found) {
System.out.println("Search failed! Account doesn't
exist..!!");
break;
case 5:
System.out.println("See you soon...");
break;
while (ch != 5);
Output 1
Output 2
2.0 Actual Resources Use
Sr. no. Name of resource material Specifications Quantity
1 Computer System 8 GB RAM, Windows 11 OS 1
2 Internet Youtube / Geek4geek
3 textbook/manual JPR Java Programming 22412 1
3.0 Skill Developed
1. Teamwork
2. Communication skills
3. Successfully created a mini banking application using Java programming.
4.0 Outputs of the Micro-Project