0% found this document useful (0 votes)
14 views

Java MP

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

Java MP

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 18

A Project Report

On

“Banking Application ”
Submitted & Presented in the fulfillment of the
requirement for the award of Diploma in
Computer Engg.

By

Ms.Doke S.M.
Mr.Surve A.S.
Ms.Shaikh S.A.
Ms.Ubale R.J.

Under The Guidance of


Ms.Kamble.K.S

Department of

COMPUTER ENGINEERING
NEW SATARA COLLEGE OF ENGINEERING AND
MANAGMENT,
KORTI-PANDHARPUR

A.Y. 2022-2023

1
NEW SATARA COLLEGE OF ENGINEERING AND MANAGMENT,
KORTI-
PANDHARPUR

This is to certify that the project report “Convert BCD number to

equivalent HEXADECIMAL numbe ”has been presented successfully


and submitted by,

Name Of The Students Exam Seat No.

Ms. DOKE SWAPNALI MOHAN

Mr.SURVE ARYAN SOPAN

Ms.SHAIKH SANIYA AHAMAD

Ms. UBALE ROSHANI JITENDRA

Student of java (Com.Eng.) class in the fulfillment for the award of Diploma in

Com.Engg as per curriculum laid by the Maharashtra State Board of Technical

Education, Mumbai. during the academic year 2023-2024

Subject teacher H.O.D Principal.


Prof.. Kamble.KS Prof. Puri S.B. Prof. Londhe. V.H.

2
 Acknowledgement

It gives me great pleasure to express my gratitude towards JAVA teacher Ms.Kamble.K.S

for her guidance support and encouragement throughout the duration of the project without his

motivation and help the successful completion of this project would not have been possible.

We are very much thankful of Mr. Puri S.B. HOD General Science Dept. for

the great support and guidance.

We are also equally indebted to our principal Prof. Londhe V. H. for his valuable

help whenever needed.

3
Index
Sr. No Title Page No

1
Introduction
5

2 Program code 6-10

3 Output 11-17

4 Refreance 18

4
Introduction

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.

5
 Program 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);

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();

public void showAccount() {

System.out.println("Name of account holder: " + name);

System.out.println("Account no.: " + accno);

System.out.println("Account type: " + acc_type);

6
System.out.println("Balance: " + balance);

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...!!" );

public boolean search(String ac_no) {

if (accno.equals(ac_no)) {

showAccount();

return (true);

return (false);
7
}

class BankingApp

public static void main(String arg[]) {

Scanner sc = new Scanner(System.in);

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();

8
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;

}
9
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);

} }
10
 Out put

Microsoft Windows [Version 10.0.19044.2728]

(c) Microsoft Corporation. All rights reserved.

C:\Users\PC 28\Desktop\aryansopansurve>set path="C:\Program Files\Java\jdk-17.0.4.1\bin"

C:\Users\PC 28\Desktop\aryansopansurve>javac BankDetails2.java

C:\Users\PC 28\Desktop\aryansopansurve>java BankingApp

How many number of customers do you want to input? 5

Enter Account No: 1001

Enter Account type: saving

Enter Name: aryan

Enter Balance: 1000

Enter Account No: 1002

Enter Account type: current

Enter Name: soham

Enter Balance: 2000

Enter Account No: 1003

Enter Account type: saving

Enter Name: shivratna

Enter Balance: 3000

Enter Account No: 1004


11
Enter Account type: current

Enter Name: rajan

Enter Balance: 4000

Enter Account No: 1005

Enter Account type: saving

Enter Name: vishal

Enter Balance: 5000

***Banking System Application***

1. Display all account details

2. Search by Account number

3. Deposit the amount

4. Withdraw the amount

5.Exit

Enter your choice:

Name of account holder: aryan

Account no.: 1001

Account type: saving

Balance: 1000

Name of account holder: soham

Account no.: 1002

Account type: current

Balance: 2000

Name of account holder: shivratna

Account no.: 1003


12
Account type: saving

Balance: 3000

Name of account holder: rajan

Account no.: 1004

Account type: current

Balance: 4000

Name of account holder: vishal

Account no.: 1005

Account type: saving

Balance: 5000

***Banking System Application***

1. Display all account details

2. Search by Account number

3. Deposit the amount

4. Withdraw the amount

5.Exit

Enter your choice:

Enter account no. you want to search: 1001

Name of account holder: aryan

Account no.: 1001

Account type: saving

Balance: 1000

***Banking System Application***


13
1. Display all account details

2. Search by Account number

3. Deposit the amount

4. Withdraw the amount

5.Exit

Enter your choice:

Enter Account no. : 1001

Name of account holder: aryan

Account no.: 1001

Account type: saving

Balance: 1000

Enter the amount you want to deposit:

200

***Banking System Application***

1. Display all account details

2. Search by Account number

3. Deposit the amount

4. Withdraw the amount

5.Exit

Enter your choice:

Name of account holder: aryan

Account no.: 1001

Account type: saving


14
Balance: 1200

Name of account holder: soham

Account no.: 1002

Account type: current

Balance: 2000

Name of account holder: shivratna

Account no.: 1003

Account type: saving

Balance: 3000

Name of account holder: rajan

Account no.: 1004

Account type: current

Balance: 4000

Name of account holder: vishal

Account no.: 1005

Account type: saving

Balance: 5000

***Banking System Application***

1. Display all account details

2. Search by Account number

3. Deposit the amount

4. Withdraw the amount

5.Exit

Enter your choice:

4
15
Enter Account No : 1002

Name of account holder: soham

Account no.: 1002

Account type: current

Balance: 2000

Enter the amount you want to withdraw:

500

Balance after withdrawal: 1500

***Banking System Application***

1. Display all account details

2. Search by Account number

3. Deposit the amount

4. Withdraw the amount

5.Exit

Enter your choice:

Name of account holder: aryan

Account no.: 1001

Account type: saving

Balance: 1200

Name of account holder: soham

Account no.: 1002

Account type: current

Balance: 1500

Name of account holder: shivratna


16
Account no.: 1003

Account type: saving

Balance: 3000

Name of account holder: rajan

Account no.: 1004

Account type: current

Balance: 4000

Name of account holder: vishal

Account no.: 1005

Account type: saving

Balance: 5000

***Banking System Application***

1. Display all account details

2. Search by Account number

3. Deposit the amount

4. Withdraw the amount

5.Exit

Enter your choice:5

 Refreance
17
Link 1. www.geeksforgeeks.org
Link 2. www.tutorialspoint.com
And my subject teacher …

18

You might also like