Вы находитесь на странице: 1из 16

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION

GOVERNMENT POLYTECHNIC, JALGAON


(0018/1567)
Program Name and Code : Computer Engineering (CO)
Course Name and Code : JAVA PROGRAMMING (22412)
Academic Year : 2019-20
Semester : FOURTH
A MICRO PROJECT
ON
MINI BANKING SYSYEM
Submitted on _______ 2019 by the group of 4 students.
Sr. Roll Enrollment Seat No.
Name of student
No. No. No.
1 45 KOLHE KHUSHBOO DNYANDEV 1800180142
2 47 PAWAR ASHWINI RAMDAS 1800180144
3 56 JOGI MANSI MOHANRAO 1800180259

Project Guide
MR. AMOL CHAUDHARI SIR
(Lecturer in JPR)
MAHARASHTRA STATE BOARD OF TECHNICAL
EDUCATION
Certificate

This is to certify that Students of CO(A)-3 (KDK, ARP, MMJ) Roll Nos. 45,47,58 of 4th
Semester of Diploma in Computer Engineeringof Institute, Government Polytechnic,
Jalgaon (Code:0018/1567) has completed the Micro Project satisfactorily in the Subject
– JAVA PROGRAMMING for the Academic Year 2019- 2020 as prescribed in the
curriculum.

Place: Jalgaon
Date: __/__/2019

Subject Teacher Head of the Department Principal

Seal of
Institution
GOVTERNMENT POLYTECHNIC
JALGAON

-SUBMISSION-

We the students of Students of CO (A)-3 (KDK, ARP, MMJ) Roll Nos. 45, 47,58 as
students of 4th Semester of the Programme Computer Engineering humbly submit that We
have completed from time to time the Micro-Project work as described in this report by our
own skills and study between the period from JUNE 2019 TO OCTOBER 2019 As per
instructions/guidance of MR. AMOL CHAUDHARI
And that following students were associated with us for this work, however, quantum
of our contribution has been approved by the Lecturer.
And that we have not copied the report on its any appreciable part from any other
literature in contravention of the academic ethics.
Date:__/__/2019 Signature of Student

KDK

ARP

MMJ
Part A: A micro-project prproposal

MINI BANKING SYSTEM


1.0 Aims/Benefits of the microproject
Develop a Program for mini banking system
2.0 Course outcome addressed.
A. Develop a program in 'Java' for banking system.
B. Perform various functions in mini banking system.
3.0 Action Plan

Sr. Detail of activity Plan start Plan finish Name of responsible


No. date date team members
1 Group discussion 10-02-2020 10-02-2020 1. KOLHE
2 Searching of real life task 15-02-2020 15-02-2020 KHUSHBOO
3 Selection of micro project topic 15-02-2020 15-02-2020 DNYANDEV
4 Gathering of information and application of it 15-02-2020 15-02-2020 2. PAWAR
5 Group discussion 15-02-2020 15-02-2020 ASHWINI
6 Distribution of work to be done 15-02-2020 15-02-2020 RAMDAS
7 Preparing the overview of the project 15-02-2020 5-03-2020 3. JOGI MANSI
8 Gathering the details 20-02-2020 5-03-2020
9 Coding / implementing programs 29-02-2020 5-02-2020 MOHANRtoAO
10 Running the code 29-02-2020 5-03-2020
11 Debugging the error 29-02-2020 5-03-2020
12 Group discussion 5-03-2020 6-03-2020
13 Gathering the data 29-02-2020 5-03-2020
14 Modifying the code 29-02-2020 5-03-2020
15 Finalizing code 29-02-2020 5-03-2020
16 Preparing report 4-03-2020 6-03-2020
NAME OF TEAM MEMBERS WITH ROLL NO.
Teachers Evaluation Sheet

Name of student:KDK, ARP, MMJ

Enrollment number: 1800180142, 144, 259

Name of Project:- MINI BANKING SYSTEM

Course Title: JAVA PROGRAMMING

Code: 22412

Title of micro-project: Mini banking system

Course outcome achieved:


A. Develop a program in 'Java' for banking system.

B. Perform various functions in mini banking system.

*Evaluation as per Suggested Rubric Assessment of Micro Project*

Characteristic to be assessed Poor Average Good Excellent

(Marks 1-3) (Marks 4-5) (Marks 6-8) (Marks 9-10)


Relevance to the course

Literature Review/ Information


collection

Analysis of Data and Representation

Completion of the target as per


project proposal
Report preparation

Presentation of the Micro project


Micro-Project Evaluation Sheet

Process and Product Assessment Individual Presentation/Viva Total Marks

(6 marks) (4 marks) (10 marks)


INTRODUCTION
Java is an object-oriented programming language developed by James
Gosling in "sun microsystems" and it was released in 1995.

Java is a set of features of c and c++. It has obtained its format from c and
features from c++.

Java code that runs on one platform does not need to be recompiled to run
on another platform it's called write once, run anywhere (WORA).

Some Important features of java are given below:

1. Simple
2. Object-Oriented
3. Portable
4. Platform independent
5. Secured
6. Robust
7. Architecture neutral
8. Interpreted
9. High Performance
10. Multithreaded
11. Distributed
12. Dynamic
About the micro-project:
In this micro project, we create a small banking system in which some of
the banking related options like withdrawal, deposit, etc.

This java program has following main menus:

1) Display All

2) Search By Account

3) Deposit

4) Withdrawal

5) Exit

Initially, we will add some (N) customers to the bank and then we can
display all account details using menu 1).

menu 2) is used to search the bank account.

menu 3) is used to deposit money in particular account.

menu 4) is used to manager withdrawal.

menu 5) is used to exit from the program.


Program 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);
}
}
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\n
1.Display All\n
2.Search By Account\n
3.Deposit\n
4.Withdrawal\n
5.Exit");
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("Search Failed..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("Search 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("Search. Failed account
not Exist.. ");
}
break;

case 5:
System.out.println("Good Bye..");
break;
}
}
while(ch!=5);
}
}