Jumma Masjid Charitable Trust’s
JMCT Polytechnic, Nashik
Fourth Semester
(Year: 2024-25)
Micro Project
Java Programming (314317)
Title of the Project: Develop a mini ATM Machine System. It should accept account
number, account holder name, account balance, and perform operations such as withdrawal,
deposit, and balance check.
Program: Computer Engineering (CO-4K)
Members of the Group
1. Pathan Alnaz Firozkhan Roll No. 38
2. Khan Saima Maheboob Roll No. 39
3. Khan Alfara Samad Roll No. 48
4. Khan Saif Ishaque Roll No. 06
Guided By: Ms. Aqsa Shaikh
Maharashtra State Board of Technical Education, Mumbai
CERTIFICATE
This is to certify that,
Mr. /Ms Alnaz Firozkhan Pathan
Roll No. 38 of fourth Semester of Diploma in
Computer Engineering of JMCT Polytechnic has completed the Micro
Project satisfactorily in course Java Programming (314317)
under the guidance of Ms. Aqsa Shaikh for the academicyear 2024-25
as prescribed in the curriculum.
Place : Nashik Enrollment No
Date : _______________ Exam Seat No
Subject Coordinator HOD Principal
Institution
seal
Teacher Evaluation Sheet for Micro Project
Course Title and Code: - Java Programming (314317)
Title of the Project: - Develop a mini ATM Machine System. It should accept account
number, account holder name, account balance, and perform operations such as withdrawal,
deposit, and balance check.
Group No: -
COs addressed by the Micro Project:
CO 1 : Develop Java program using classes and objects.
CO 2 : Develop Java program for implementing code reusability concept.
CO 3 :
CO 4 :
CO 5 : .
Marks:-
Marks
Marks for obtainedby the Total
Roll No. Name Of Student Group Work individual Marks
(6) based on viva (10)
(4)
38 Alnaz Firozkhan Pathan
39 Saima Maheboob Khan
48 Alfara Samad Khan
06 Saif Ishaque Khan
Name and designation of Faculty Member: Ms. Asqa Shaikh
Lecturer in Computer Department
Signature:
1.Title of the Project: - Develop a mini ATM Machine System. It should accept account
number, account holder name, account balance, and perform operations such as withdrawal,
deposit, and balance check.
2.Description of the Project: This Java based ATM system is a simple console application
that's stimulate basic banking transaction. It allows user to interact with a virtual ATM where
they can deposit money, withdraw funds, check their account balance and exit the system, The
program is structured using object oriented programming (OOP) principle ensuring modularity
and data encapsulation.
3.Concepts of OOP used in the Project: Class and Objects, Inheritance, Data
Encapsulation.
4.Project Code:
import java.util.Scanner;
class Account {
private String accountNumber;
private String accountHolderName;
private double balance;
// Constructor to initialize account details
public Account(String accountNumber, String accountHolderName, double balance) {
this.accountNumber = accountNumber;
this.accountHolderName = accountHolderName;
this.balance = balance;
}
// Method to deposit money
public void deposit(double amount) {
if (amount > 0) {
balance += amount;
System.out.println("Deposit successful! New balance: $" + balance);
} else {
System.out.println("Invalid deposit amount.");
}
}
// Method to withdraw money
public void withdraw(double amount) {
if (amount > 0 && amount <= balance) {
balance -= amount;
System.out.println("Withdrawal successful! Remaining balance: $" + balance);
} else {
System.out.println("Invalid withdrawal amount or insufficient balance.");
}
}
// Method to check balance
public void checkBalance() {
System.out.println("Account Balance: $" + balance);
}
}
public class MiniATM {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
// Accepting account details
System.out.print("Enter Account Number: ");
String accNumber = scanner.nextLine();
System.out.print("Enter Account Holder Name: ");
String accHolderName = scanner.nextLine();
System.out.print("Enter Initial Balance: ");
double accBalance = scanner.nextDouble();
// Creating Account object
Account userAccount = new Account(accNumber, accHolderName, accBalance);
// ATM operations menu
while (true) {
System.out.println("\n***** ATM Menu *****");
System.out.println("1. Deposit");
System.out.println("2. Withdraw");
System.out.println("3. Check Balance");
System.out.println("4. Exit");
System.out.print("Choose an option: ");
int choice = scanner.nextInt();
switch (choice) {
case 1:
System.out.print("Enter deposit amount: ");
double depositAmount = scanner.nextDouble();
userAccount.deposit(depositAmount);
break;
case 2:
System.out.print("Enter withdrawal amount: ");
double withdrawAmount = scanner.nextDouble();
userAccount.withdraw(withdrawAmount);
break;
case 3:
userAccount.checkBalance();
break;
case 4:
System.out.println("Thank you for using the ATM. Goodbye!");
scanner.close();
return;
default:
System.out.println("Invalid choice. Please try again.");
}
}
}
}
5. Project Output:
Enter Account Number: 8888136780
Enter Account Holder Name: Aditya
Enter Initial Balance: 70000
*****ATM Menu *****
1. Deposit
2. Withdraw
3. Check Balance
4. Exit
Choose an option: 1
Enter Deposit Amount: 30000
Deposit successful! New Balance: $100000.0