0% found this document useful (0 votes)
19 views8 pages

JPR 11

Uploaded by

Astha Madekar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views8 pages

JPR 11

Uploaded by

Astha Madekar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

A

Micro-project report on

“Mini bank system for handling deposits and

withdrawal”

Submitted to:
MAHARASHTRA STATE BOARD OF TECHNICAL
EDUCATION, MUMBAI

In partial fulfillment of the requirement for the award of diploma in

COMPUTER ENGINEERING

Submitted by:
Yuvraj Garodi

Artharv Manekar

Vaishali Taywade

Akshita Dharanwar

Astha Madekar

Under the guidance of

Miss . Nikita Patil

Lecturer, CO Department

NIT Polytechnic, Nagpur


NIT POLYTECHNIC, NAGPUR

DEPARTMENT OF COMPUTER ENGINEERING

Academic Year: 2023-24


Survey No. 13/2, Katol Road, Near Fetri, Mahurzari,
Nagpur.
Maharashtra 441501

CERTIFICATE

This is to certify that this Micro project report on “Mini bank system for
handling deposits and withdrawal ” is the Bonafide work of (Yuvraj Garodi,
Vaishali Taywade, Arthrav Manekar,Akshita Dharanwar,Astha Madekar)
who carried out the project work under my supervision for the partial fulfilment
of curriculum as prescribed by MSBTE, Mumbai.

Miss. Nikita Patil Mrs.Sharda Chaudhari Prof. G .F. Potbhare


Lecturer , Co-Dept HOD , Co-Dept Principal , Polytechnic
NIT.POLY, Nagpur NIT.POLY, Nagpur NIT.POLY, Nagpur
Submission

The student of Nagpur Institute of Technology, (formerly known as NIT Polytechnic) Second
We the students of Year Fourth semester of course COMPUTER ENGINEERING humbly submit that
we have Completed time to time as a part of project work as prescribed Maharashtra State Board of
Technical Education, Mumbai for the subject Java programming and the project is prescribed .In
the report by our own skill and study for the academic session 2023-24, as per the guidance Of Miss.
Nikita Patil, Lecturer in Computer Department.

Names of Group Signature /


Members: Acknowledgement of
Group Members:
Yuvraj Garodi
Vaishali Taywade
Arthrav Manekar
Akshita Dharanwar
Astha Madekar
Java program for banking system

import java.util.Scanner;

class BankAccount {
private String accountNumber;
private double balance;

public BankAccount(String accountNumber) {


this.accountNumber = accountNumber;
this.balance = 0.0;
}

public void deposit(double amount) {


balance += amount;
System.out.println("Deposit of $" + amount + " successful");
System.out.println("New Balance: $" + balance);
}

public void withdraw(double amount) {


if (balance >= amount) {
balance -= amount;
System.out.println("Withdrawal of $" + amount + " successful");
System.out.println("New Balance: $" + balance);
} else {
System.out.println("Insufficient funds");
}
}
public double getBalance() {
return balance;
}
}

public class MiniBankSystem {


public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);

System.out.println("Welcome to Mini Bank System");

// Creating a new bank account


System.out.print("Enter your account number: ");
String accountNumber = scanner.nextLine();
BankAccount account = new BankAccount(accountNumber);
while (true) {
System.out.println("\nChoose an option:");
System.out.println("1. Deposit");
System.out.println("2. Withdraw");
System.out.println("3. Check Balance");
System.out.println("4. Exit");

int choice = scanner.nextInt();

switch (choice) {
case 1:
System.out.print("Enter deposit amount: $");
double depositAmount = scanner.nextDouble();
account.deposit(depositAmount);
break;
case 2:
System.out.print("Enter withdrawal amount: $");
double withdrawalAmount = scanner.nextDouble();
account.withdraw(withdrawalAmount);
break;
case 3:
System.out.println("Current Balance: $" + account.getBalance());
break;
case 4:
System.out.println("Thank you for using Mini Bank System");
System.exit(0);
default:
System.out.println("Invalid choice, please try again");
}
}
}
}
Output

You might also like