Java Microproject
Java Microproject
Brief Introduction
In Java, we can create an ATM program for representing ATM transection. In the ATM program,
the user has to select an option from the options displayed on the screen. The options are related
to withdraw the money, deposit the money, check the balance, and exit.
To withdraw the money, we simply get the withdrawal amount from the user and remove that
amount from the total balance and print the successful message.
To deposit the money, we simply get the deposit amount from the user, add it to the total balance
and print the successful message.
We use the exit(0) method to exit from the current Transaction mode and return the user to the
home page or initial screen.
1. Allowing consumers to perform quick self-service transactions such as deposits, cash withdrawals,
bill payments, and transfers between accounts.
2. Fees are commonly charged for cash withdrawals by the bank where the account is located, by the
operator of the ATM.
Action Plan (Sequence and time required for major activities for 8 Weeks)
S. Name Planned Start Planned Enrollment number
No. date Finish date
4.0 Resources Required (major resources such as raw material, some machining facility, software etc.)
S. No. Name of Resource/material Specifications Qty Remarks
1 Laptop WINDOWS 10 1
2 Software Cmd , Notepad 1
**************
Title of Micro-Project
ATM MANAGEMENT SYSTEM
Brief Description
In Java, we can create an ATM program for representing ATM transection. In the ATM program,
the user has to select an option from the options displayed on the screen. The options are related
to withdraw the money, deposit the money, check the balance, and exit.
To withdraw the money, we simply get the withdrawal amount from the user and remove that
amount from the total balance and print the successful message.
To deposit the money, we simply get the deposit amount from the user, add it to the total balance
and print the successful message.
We use the exit(0) method to exit from the current Transaction mode and return the user to the
home page or initial screen.
PROGRAM CODE:-
//import required classes and packages
import java.util.Scanner;
while(true)
{
System.out.println("Automated Teller Machine");
System.out.println("Choose 1 for Withdraw");
System.out.println("Choose 2 for Deposit");
System.out.println("Choose 3 for Check Balance");
System.out.println("Choose 4 for EXIT");
System.out.print("Choose the operation you want to perform:");
//check whether the balance is greater than or equal to the withdrawal amount
if(balance >= withdraw)
{
//remove the withdrawl amount from the total balance
balance = balance - withdraw;
System.out.println("Please collect your money");
}
else
{
//show custom error message
System.out.println("Insufficient Balance");
}
System.out.println("");
break;
case 2:
case 3:
//displaying the total balance of the user
System.out.println("Balance : "+balance);
System.out.println("");
break;
case 4:
//exit from the menu
System.exit(0);
}
}
}
}
OUTPUTS:-
Teacher Evaluation Sheet
3 Project Proposal
6 Quality of Prototype/Model
7 Report Preparation
8 Presentation
9 Defense
Note:
Every course teacher is expected to assign marks for group evolution in first 3 columns & individual
evaluation in 4TH columns for each group of students as per rubrics.
Signature…………………………………………………………………………………………...................