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

Micro Project Java

Java micro project

Uploaded by

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

Micro Project Java

Java micro project

Uploaded by

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

Annexure-I

A MICRO PROJECT ON " Banking Application in Java"

1.0 Aims/Benefits of the micro project

 To learn basic java programming for making applications.


 To get Information about java programming syntax.
 Gain Knowledge about how to make banking applications in java.

2.0 Course outcome addressed.

a. Develop programs using Object Oriented methodology in Java.


b. Apply the concept of inheritance for code reusability

3.0 Proposed methodology

1. Focused on the selection of an appropriate topic for the micro-project.

2. Select the topic i.e. To Prepare a report on a mini-banking application in


Java.

3. Brief study 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.0 Action Plan

Plan Plan
Name of responsible team
Sr. No. Detail of activity start finish
members
date date

1 Searching the topic for micro-project 19/03/24 19/03/24 Pranay Devandra Patle

2 collect information from the internet and textbook 19/03/24 21/03/24 Yash Vinod Sarangpure

collect information from the JPR Java


3 Programming 22412 Manual reference book & 20/03/24 24/03/24 Pranay Devendra Patle
Manual.

4 arrange all information in ms word 22/03/24 29/03/24 Ankit Arun Patle

5 Prepare a report on it using MS word 22/03/24 29/03/24 Yash Vinod Sarangpure

6 print micro project 30/03/24 30/03/24 Ankit Arun Patle

Sr. no. Name of resource material Specifications Quantity

1 Computer System 16 GB RAM, Windows 11 OS 1

2 Internet Youtube / geek4geek

1
3 textbook/manual JPR Java Programming 22412

5.0 Resources used


annexure-II
Micro-Project Report

A MICRO PROJECT ON "Banking Application in Java"


1.0 Brief Introduction/Rationale
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.

Mini Banking Application Using Java Programming

we will understand how to develop 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.

Originally, the program accepts the number of customers we require to add and adds
the customer and account details thus. Further, it displays a series of menus to work
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
Code:

JAVA

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() {
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];
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;
}
}
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);
}
}

Output.1:
Output 2

Actual Resources Use

Sr. no. Name of resource material Specifications Quantity

1 Computer System 8 GB RAM, Windows 11 OS 1

2 Internet youtube / Geek4geek

3 textbook/manual JPR Java Programming 22412 1

Skill Developed
1. Teamwork
2. Communication skills
3. Successfully created a mini banking application using Java programming.

You might also like