You are on page 1of 13

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION

P.E.S Polytechnic

Nagsenvana Aurangabad

MICRO PROJECT
Academic year: 2020-21

TITLE OF PROJECT
“Mini Banking System for Handling deposits and withdrawal.”

Program: Computer Engineering

Program code: CO-4I

Course: JAVA

Course code:22412

1|Page
MAHARASHTRA STATE

BOARD OF TECHNICAL EDUCATION

Certificate

This is to certify that Md. Arib Khan Roll No.CO-219 of 4rd Semester of
Diploma in COMPUTER ENGINEERING of Institute: PES Polytechnic
Aurangabad has completed the Micro Project satisfactorily in Subject –JAVA
(22412) for the academic year 2020-2021 as prescribed in the curriculum.

Place: Aurangabad Enrollment No: 1914970017

Date: ………….. Exam Seat No:

Name of Guide: Ms.

2|Page
INDEX

Sr.N Topic Page.no


o
1 Introduction 4
2 Objective 4
3 Program 5-9
4 Output 10-13
5 Reference 13

INTRODUCTION

3|Page
The main objective of the project is to develop online Banking system for
banks. In present system all banking work is done manually. User have to visit
bank to Withdrawal or Deposit amount. In present bank system it is also
difficult to find account information of account holder. In this bank
management system we will automate all the banking process. In our bank
management system user can check his balance online and he can also transfer
money to other account online. In this Software you can keep record for daily
Banking transactions. The main purpose of developing bank management
system is to design an application, which could store bank data and provide an
interface for retrieving customer related details with 100% accuracy.

This bank management system also allow user to add new customer account,
delete account and user can also modify existing user account information.
Using this system user can also search any individual account in few seconds.
Using our bank management system user can also check any translation in any
account. Our system also provide security check to reduce fraud. The system
will check the user’s existence in the database and provide the set of services
with respect to the role of the user.

The objective of this bank management system are:-

The main object of this system is to provide a secure system. Our system is
password protected and it only allows authorized user to access various
functions available in the system.

Our system will help the user to Locate any A/C wanted by the user. It will
Reduced manual work as most of the work done by computer. As all the manual
work will be done automatically so it will increase work speed and reduce time
consumption to complete any bank related work. It will also increase the work
efficiency as few employees can handle more customers. This will reduced the
manual workload and give information instantly.

The Project Banking system has been made to automate the Banking system.
Through this bank management system user can manage all bank account
activity like deposit money, withdraw money, transfer money from one account
to another account, online payment etc. Using this bank management system

4|Page
user can check his account detail online like balance in account, bank statement
etc. The Administrator can check bank account with a login can work out with
A/C holders of the bank can withdraw/ deposit cash / cheque /DD to/from their
accounts. This system is also help bank user to create New account easily. The
project makes a sincere effort to provide all the below-mentioned features to
meet the requirements of the bank.

Program -

import java.util.Scanner;
class Bank {
private String accno;
private String name;
private long balance;
Scanner KB = new Scanner(System.in);
//method to open an account
void openAccount() {
System.out.print("Enter Account No: ");
accno = KB.next();
System.out.print("Enter Name: ");
name = KB.next();
System.out.print("Enter Balance: ");
balance = KB.nextLong();
}
//method to display account details
void showAccount() {
System.out.println(accno + "," + name + "," + balance);
}

5|Page
//method to deposit money
void deposit()
long amt;
System.out.println("Enter Amount U Want to Deposit : ");
amt = KB.nextLong();
balance = balance + amt;
}
//method to withdraw money
void withdrawal() {
long amt;
System.out.println("Enter Amount U Want to withdraw : ");
amt = KB.nextLong();
if (balance >= amt) {
balance = balance - amt;
} else {
System.out.println("Less Balance..Transaction Failed..");
}
}
//method to search an account number
boolean search(String acn) {
if (accno.equals(acn)) {
showAccount();
return (true);
}
return (false);
}
}

6|Page
public class ExBank {
public static void main(String arg[]) {
Scanner KB = new Scanner(System.in);
//create initial accounts
System.out.print("How Many Customer U Want to Input : ");
int n = KB.nextInt();
Bank C[] = new Bank[n];
for (int i = 0; i < C.length; i++) {
C[i] = new Bank();
C[i].openAccount();
}
//run loop until menu 5 is not pressed
int ch;
do {
System.out.println("Main Menu\n1. Display All\n 2. Search By Account\n
3. Deposit\n 4. Withdrawal\n 5.E xit ");
System.out.println("Ur Choice :"); ch = KB.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 U Want to Search...: ");
String acn = KB.next();
boolean found = false;

7|Page
for (int i = 0; i < C.length; i++) {
found = C[i].search(acn);
if (found) {
break;
}
}
if (!found) {
System.out.println("Search Failed..Account Not Exist..");
}
break;
case 3:
System.out.print("Enter Account No : ");
acn = KB.next();
found = false;
for (int i = 0; i < C.length; i++) {
found = C[i].search(acn);
if (found) {
C[i].deposit();
break;
}
}
if (!found) {
System.out.println("Search Failed..Account Not Exist..");
}
break;
case 4:
System.out.print("Enter Account No : ");

8|Page
acn = KB.next();
found = false;
for (int i = 0; i < C.length; i++) {
found = C[i].search(acn);
if (found) {
C[i].withdrawal();
break;
}
}
if (!found) {
System.out.println("Search Failed..Account Not Exist..");
}
break;
case 5:
System.out.println("Good Bye..");
break;
}

OUTPUT –
How Many Customer U Want to Input : 2

9|Page
Enter Account No: 101
Enter Name: Chintu
Enter Balance: 25000
Enter Account No: 102
Enter Name: Alexander
Enter Balance: 30000

Main Menu
1.Display All
2.Search By Account
3.Deposit
4.Withdrawal
5.Exit
Ur Choice :
1

101,Chintu,25000
102,Alexander,30000

Main Menu
1.Display All
2.Search By Account
3.Deposit
4.Withdrawal
5.Exit
Ur Choice :

10 | P a g e
2

Enter Account No U Want to Search...: 102


102,Alexander,30000

Main Menu
1.Display All
2.Search By Account
3.Deposit
4.Withdrawal
5.Exit
Ur Choice :
3

Enter Account No : 102


102,Alexander,30000
Enter Amount U Want to Deposit :
25000

Main Menu
1.Display All
2.Search By Account
3.Deposit
4.Withdrawal
5.Exit
Ur Choice :
4

11 | P a g e
Enter Account No : 102
102,Alexander,55000
Enter Amount U Want to withdraw :
15000

Main Menu
1.Display All
2.Search By Account
3.Deposit
4.Withdrawal
5.Exit
Ur Choice :
4

Enter Account No : 105


Search Failed..Account Not Exist..

Main Menu
1.Display All
2.Search By Account
3.Deposit
4.Withdrawal
5.Exit
Ur Choice :
5
Good Bye..

12 | P a g e
REFERENCE:
Teachers, notes, YouTube, etc.

SOURCES USED:
www.wikipedia.com
Comments or suggestions (if any)
……………………………………………………………………………..
Roll. No. Student Name Marks of 10
Khan Mohd Arib
Yousuf

……………..

13 | P a g e

You might also like