You are on page 1of 14

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION

GURU GOBIND SINGH POLYTECHNIC, NASHIK

MICRO PROJECT
Academic year: 2023-24

TITLE OF PROJECT
_______________________________________

Program: Computer Engineering


Program code: CO
Course: Java Programming
Course code: 22412
MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION

Certificate
This is to certify that Mr. /Ms. Roll
Sr. No Name of Student
No
1
2
3
4
5
of Fourth Semester of Diploma in Computer Engineering of Institute Guru Gobind Singh Polytechnic, Nasik
(Institute Code: 0369) has completed the Micro Project satisfactorily in Subject – Java
Programming(22412) for the academic year 2023-24 as prescribed in the curriculum.

Sr. No Enrollment No. Exam Seat No.


1
2
3
4
5

Place: Date:

Subject Teacher Head of the Dept. Principal


MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION

GURU GOBIND SINGH POLYTECHNIC, NASHIK

MICRO PROJECT
Academic year: 2018-19

TITLE OF PROJECT
_______________________________________
Program: Computer Engineering
Program code: CO
Course: Java Programming
Course code: 22412
Group Details:
Sr. No Name of Group Roll No. Enrollment Seat No.
Members No.
1

5
Name of Guide: Mrs. P.S.Gaidhani
ANNEXURE II
Evaluation Sheet for the Micro Project
Academic Year: 2023-24 Name of the Faculty: Mrs. P. S. Gaidhani

Course: Java Programming Course code: 22412 Semester: IV

Title of the project: ___________________________________________________________________

Cos addressed by Micro Project (Tick √)

(Tick √)
CO. NO Course outcomes
Which is applicable
CO1 1. Develop programs using Object Oriented Methodology in Java
CO2 2. Apply the concept of inheritance for code reusability
CO3 3. Develop programs using multithreading
CO4 4. Implement Exception Handling
CO5 5. Develop programs using graphics & Applet
CO6 6. Develop programs for handling I/O & File Streams
Major learning outcomes achieved by students by doing the project

(a) Practical outcome:


1. Develop programs using Object Oriented Methodology in Java
2. Apply the concept of Constructor, inheritance for code reusability
3. Develop programs using multithreading
4. Implement Exception Handling
5. Develop programs using graphics & Applet
6. Develop programs for handling I/O & File Streams
(b) Unit outcomes in Cognitive domain:
1. Implement basic syntactical constructs in Java
2. Derived syntactical constructs in Java
3. Apply the concept of Inheritance ,Interface & Package
4. To handle run time errors
5. Develop Applet based graphics application
6. Manage Input output files in Java
(c) Outcomes in Affective domain:
1. Follow safety practices.
2. Practice good housekeeping.
3. Demonstrate working as a leader/a team member at the time of micro project.
4. Maintain tools and equipment.
5. Follow ethical practices.
Comments/suggestions about team work /leadership/inter-personal communication (if
any)

________________________________________________________________________________________________________________

________________________________________________________________________________________________________________

________________________________________________________________________________________________________________

________________________________________________________________________________________________________________

________________________________________________________________________________________________________________

Marks out of 6 Marks out of


for performance 4for
Roll No Student Name in group activity performance in Total out of 10
(D5 Col.8) oral/
presentation
(D5 Col.9)

Mrs. P.S.Gaidhani

(Name & Signature of Faculty)


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 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 of program

You might also like