0% found this document useful (0 votes)
9 views16 pages

JAVA REPORT FINAL (1)

The document outlines a micro project titled 'Mini Bank system for handling Deposits and Withdraw' developed by three students under the guidance of Prof. Archana Sahu for the academic year 2022-2023. It describes the functionalities of a banking application in Java, including account creation, deposits, withdrawals, and balance inquiries, utilizing JDBC for transaction handling. The project also discusses its advantages and disadvantages, concluding that the application simplifies banking transactions for users.
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)
9 views16 pages

JAVA REPORT FINAL (1)

The document outlines a micro project titled 'Mini Bank system for handling Deposits and Withdraw' developed by three students under the guidance of Prof. Archana Sahu for the academic year 2022-2023. It describes the functionalities of a banking application in Java, including account creation, deposits, withdrawals, and balance inquiries, utilizing JDBC for transaction handling. The project also discusses its advantages and disadvantages, concluding that the application simplifies banking transactions for users.
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
You are on page 1/ 16

Subject: JAVA (22412) Academic Year: 2022 -23

Branch Name: AN-4-I Semester: Fourth

Mini Bank system for handling Deposits and withdraw

By the group of 3 students

Roll No Name Of Students Enrollment Seat No


(Sem-4) No.
32 Mr. Yash Patil 2216290253 149474

29 Mr. Priyanshu Kannaujiya 2216290250 149472

23 Mr. Sameer Jadhav 2116290142 149467

Under the guidance of


MS. ARCHANA SAHU
AT
Department of Artificial Intelligence and Machine Learning
(Diploma)

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION


CERTIFICATE

This Micro Project Report Entitled “ Mini Bank system for handling
Deposits and withdraw ” By Mr. Yash Patil , Mr. Priyanshu Kannaujiya, Mr.
Sameer Jadhav Is Approved For the Diploma of AIML Engineering (Diploma)
(Second Year) For Academic Year 2022 - 2023.

Examiners

1.

2.

Supervisor

1.

Prof. Archana Sahu

Head of the Department Principal

Date:

Place:
ACKNOWLEDGEMENT

A micro project is something that could not have been materialized


without cooperation of many people. This project shall be incomplete if I
do not convey my heartfelt gratitude to those people from whom I have
got considerable support and encouragement. It is a matter of great
pleasure for us to have respected Prof. Archana Sahu as my project
guide. We are thankful to her for being a constant source of inspiration.
We would like to give our sincere thanks to Prof. Heena Patil Head of
Department, for their kind support.
CONTENTS

Sr. No Name Of Topic Page No.

1. Abstract 5

2. Introduction 6

3. Aim 7

4. Scope of work 8

5. Code Implementation 9-14

6. Advantages And Disadvantages 15

7. Conclusion 16
ABSTRACT

Banking Application in Java :

In this program, some basic functionalities of a bank account


like a deposit of amount, withdrawal of amount etc.

Initially, the program accepts the number of customers need


to add and adds the customer and account details accordingly.
Further, it displays the series of menus to operate 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
INTRODUCTION

In this program, some basic functionalities of a bank account like a


deposit of amount, withdrawal of amount, etc.
In any Bank Transaction, there are several parties involved to
process transaction like a merchant, bank, receiver, etc. so there are
several numbers reasons that transaction may get failed, declined, so
to handle a transaction in Java, there is a JDBC (Java Database
Connectivity) which provides us an API to connect, execute, fetch
data from any databases. It provides the language Java database
connectivity standards. It is used to write programs required to
access databases.
In this Mini Banking Application, to handle a transaction, we are
using JDBC Transaction to make transactions consistent. This
Application Provides Menu-Driven Console Interface to a User
Using that User can perform functions like create Account, Login,
View Balance And Transfer Money To The Other Customer.
AIM OF MICRO-PROJECT:

Initially, the program accepts the number of customers need to add


and adds the customer and account details accordingly. Further, it
displays the series of men to operate over the accounts.

In this Mini Banking Application, to handle a transaction, we are


using JDBC Transaction to make transactions consistent. This
Application Provides Menu-Driven Console Interface to a User
Using that User can perform functions like create Account, Login,
View Balance And Transfer Money To The Other Customer.
SCOPE OF WORK:

• Creating New Accounts- The application can be used to create


two different types of accounts by the customers, which are
Savings Account and Current Account. It helps save the hustle for
the customer to visit the bank physically and create/use these
accounts.

• Depositing Money- As the world is moving towards the limited


use of paper currency, depositing or transferring money from one
bank to the other will become as easy as clicking a few buttons
using this application.

• Withdrawing Money- Requests can be sent through the


application to ask for money transfer as well.

• Account Holder List- This is a feature for the admin. The admin
can view the list of all the account holders.

• Balance Enquiry- The customer can check their balance via this
application.

• Changing Passwords/PIN- The customer can easily change the


passwords and pin numbers using the application.

• Closing- The customer can close their accounts too using this
application.
PROJECT IMPLEMENTATION

CODE:

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);
}
//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);
}
}
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;
for (int i = 0; i <
C.length; i++) {
found =
C[i].search(acn);
if (found) {
break;
}
}
if (!found) {
System.out.println("S
earch 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("S
earch Failed..Account Not Exist..");
}
break;
case 4:
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].withdrawal();
break;
}
}
if (!found) {
System.out.println("S
earch Failed..Account Not Exist..");
}
break;
case 5:
System.out.println("Go
od Bye..");
break;
}
}
while (ch != 5);
}
}
• ADVANTAGES AND DISADVANTAGES

Advantages :

• Convenience
• Faster Service
• 24x7 Facility
• Quality Service

Disadvantages :

• Insecurity
• High Star-up cost
• Lack of Personal contact
• Transaction Problem
CONCLUSION

Banking system is a way to maintain few records which bank


holds in order to keep a track of everything in the bank so a
software application is required in order to make the work easier,
for example:- maintenance of international value of INR and
other currency are also a part of the job of banking system. The
bank management is also required to act as the currency
distributor and to serve the work for the nation’s well-being. This
application is built to make it easier for the customers to track
every transaction that is being made.

You might also like