Ajp Nehu
Ajp Nehu
EDUCATION
MICRO PROJECT
Academic year: 2024-25
TITLE OF PROJECT
1
Name of Student: Jamdhade Neha Anil
Enrolment No: 2200790153
Name of Program: Computer Technology Semester:-V
Course Title: Advance Java(AJP) Code: -22517
Title of the Micro Project: Mini Banking System for Handling Diposits and withdrawal
Course Outcomes Addressed:-
a) CO-a Develop Program Of AWT Using GUI Framework (AWT & Swing).
b) CO-b Handle Event Of AWT And Swing Components.
c) CO-c Develop Program To Handle Events In Java Programming.
d) CO-d Develop Java Programs Using Networking Concepts.
e) CO-e Develop Program Using Database.
f) CO-f Develop Program Using Servlets.
(A) Process and Product Assesssment (Convert above total marks out of 6 marks)
1 Relevance to the Course
Literature Survey /
2
Information Collection
Completion of the Target as
3
per project proposal
Analysis of data and
4
representation
5 Quality of Prototype / Model
6 Report Preparation
(B) Individual Presentation / Viva (Convert above total marks out of 4 marks)
8 Presentation
9 Viva
Micro – Project Evaluation Sheet:
Process Assessment Product Assessment
Part Part
A – project Project B – Project Individual Total
Proposal Methodology Report / Working Presentation / Marks
Name of Student (2 marks (2 marks) Model(2 marks) Viva(4 marks) 10
2
Name and designation of the faculty Member: Ms .A.S.Chordia Signature
CERTIFICATE
This is to certify 1)Jamdhade Neha Anil.
of 5th Semester of Diploma in Computer Technology of Institute, Shri H.H.J.B. Polytechnic,
Chandwad (Code: 0079) has completed the Micro-Project satisfactorily in Subject Advance
Java(22517) for the academic year 2024-2025 as prescribed in the curriculum.
Place: CHANDWAD
Date: / 11 /2024
Seal of
Institute
3
INDEX
Part A
1 Brief Introduction 5
3 Proposed Methodology 5
4 Action Plan 5
5 Resources Required 6
Part B
1 Brief Description 7
6 Code 8
7 Output Of Microproject 20
8 Skill Developed 24
9 Applications of Microproject 24
4
PART A-Plan
Title of micro-project:- Mini Banking System for Handling Diposits and withdrawal
3. Proposed Methodology:-
1. Focused on the selection of an appropriate topic for the micro-project.
2. Select the topic i.e. Mini Banking System for Handling Deposits & Withdrawal
3. Brief study as well as a survey 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. Action Plan:-
Sr Planned Start Planned Finish
no. Details of activity Date Date
1. Finalization of topic 25-07-2024 01-08-2024
2. Preparation of Abstract 01-08-2024 08-08-2024
3. Collection of data 20-08-2024 25-08-2024
4. Submission of Micro Project -11-2024 -11-2024
5. Resources Required:-
Sr. Name of Resource/Material Specification Quantity Remarks
5
No
1. Computer (Desktop/Laptop) i5,RAM 16GB 1 Available
2. Microsoft office word 2010 1 Available
3. Books - - -
4. Websites ChatGPT 1 Available
5. Software jdk 1.8.0 or above 1 Available
PART B-Plan
Title of micro-project:- Mini Banking System for Handling Diposits and withdrawal
6
1. Brief Description:-
we will learn how to create 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.
Initially, the program accepts the number of customers we need to add and adds the customer
and account details accordingly. Further, it displays the series of menus to operate over the
accounts.
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
2. Aims of Micro Project:-
Java technology is widely used for web application development. Based on the object-oriented
concepts and core Java concepts, this course will equip the students with the required knowledge
and skill of the object-oriented programming approach needed for the development of robust,
powerful web applications. Through this course, students will get hands-on experience with GUI
Technologies viz. AWT and Swings, event handling mechanisms, and network programming. The
course also gives coverage to various web application aspects like Database Interaction, server-
side components, and servlets.
To connect the system with the database you will need to follow certain steps.
Have Java JDK already installed and an IDE like Eclipse
Install MySQL on the system.
In Eclipse, under your project expand external libraries and right-click, and select Open
Library Settings. Select the libraries tab and click on the + button. Browse your jar file
downloaded from the above step and click on it. This will add a dependency to your
project. The steps will differ if you are using a different IDE.
In this section, we will learn how to create 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.
7
Initially, the program accepts the number of customers we 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:
6. Code:-
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() {
8
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];
9
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;
10
}
}
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);
7. Output Of Microproject:-
Output 1:
11
Output 2:
12
8. Skill Developed:-
1.Learn how to create Bank system in java for handling deposits and withdrawal
2.Java Programming skills developed and successfully run program in jdl.
9. Applications of Microproject:-
1. For handling deposits of bank account.
2. For Handling Withdrawals of bank account.
3. For Viewing account balance.
4. For creating mini bank system.
13