Java Com
Java Com
SOLAPUR
Information technology(IF3I)
Micro-project On
Submitted by :
Roll no. Enrollment no. Student Name
21 2100150262 Dhotre Gayatri Mallikarjun
22 2100150264 Poul Manali Subhash
23 2100150265 Rajput Shravani Rahul
[GP.Solapur]
Page 1
Prof.Manisha Anjikhane
CERTIFICATE
Place:-Solapur
Date:
[GP.Solapur]
Page 2
Prof.Manisha Anjikhane
Group Member
[GP.Solapur]
Page 3
Index
Sr No. Title
1 ACKNOWLEDGEMENT
2 Brief Introduction
3 Aim of Micro project This Micro-project aims
4 Course Outcome Integrated
5 Actual Procedure followed
6 Actual Resource followed
7 Code of micro-project
8 Outputs of Micro Project
9 Skill Developed/ learning out of this Micro-Project
[GP.Solapur]
Page 4
ACKNOWLEDGEMENT
We would also like to extend our gratitude to the Principal ,Vice Principal Sir for
providing us with all the facility that was required. We would also like to thank our
parents who have helped with their valuable suggestions and provided the required
resources needed for the microproject.
[GP.Solapur] Page 5
PART B
Micro-Project Report.
There are different concept in Java such as loop ,switch case ,if-else,
class, array , datatype , inheritance,file handling, etc. As per our project
We have used classes, if else ,switch case ,scope resolution ,function , do while
loop, datatype use of int and void ,visibility mode are used in program. our Topics
for microproject are:
Class Name:Bank is used program and preform the all the function execution
in banking management sytem,there are used in open bank account, deposite in
bank account, withdraw in a your bank account , search in bank opening
date ,time or amount. Display the overall output.
[GP.Solapur] Page 6
4.Search:This function is used in bank account search there are used bank
amount and Name, account Number any information searched in function.
5.Display:This function is used in Bank infromation are dsiplay and end This
function.
The main objective of bank management is to build organic and optimal
system of interaction between the elements of banking mechanism with a
view to profit.
[GP.Solapur] Page 7
3.0 Course Outcome Integrated
Individual Banking—Banks typically offer a variety of services to assist
individuals in managing their finances, including:
Develop program using object oriented methodology in Java.
Apply concept of inheritance for code reusability.
6. if the user entered invaliad case number for that i have mentioned default as:-
you have pressed the wrong key. please try again.
[GP.Solapur] Page 8
Sr. Name Of Specifications Qantit Remarks
No Resource/Material y
1 Computer Desktop- RAM 8.00 1
version - 2010
[GP.Solapur] Page 9
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();
[GP.Solapur] Page 10
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**");
[GP.Solapur] Page 11
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;
[GP.Solapur] Page 12
}
}
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);
}
}
[GP.Solapur] Page 13
8.0 Skill Developed/ learning
out of this Micro-Project
Carry out advanced research in the field of Commerce, banking and finance.
[GP.Solapur] Page 14