OOP Micro Project
OOP Micro Project
Submitted By
Devraj Patel (236400316116)
Jenish Patel (236400316131)
Maharshi Patel (236400316135)
DIPLOMA ENGINEERING
in
By integrating user input, conditional logic, loops, and data validation, this system
allows for interactive and secure handling of customer transactions. It is particularly
useful for learning how to build real-life applications through modular code structure,
menu-driven interfaces, and essential programming constructs. The system runs
entirely in the command line, offering a lightweight and intuitive way to understand
core banking workflows.
Overall, this project acts as a foundation for developing larger, more complex financial
applications and helps reinforce key programming concepts in a practical, hands-on
way.
1.
Project Explanation
1.Account Creation
Users can create an account by providing their name, choosing the account type
(General/Saving), setting a 4-digit PIN, and depositing a minimum balance of ₹500. A
unique 5-digit account number is generated randomly.
Deposit: User enters the account number and PIN, then deposits a valid amount, which
gets added to the balance.
Withdraw: After PIN verification, the user can withdraw any amount not exceeding the
current balance.
3. Balance Enquiry
Displays complete account details including account number, name, balance, account
type, and the current date & time, providing a simulated banking receipt.
4. PIN Change
Allows the user to securely update their 4-digit ATM PIN after validating the current
PIN.
5. Menu-Driven Interface
A user-friendly text menu allows users to navigate through features. Input choices
trigger corresponding actions in a continuous loop until the user exits.
6.
Code Explanation
The program uses a Bank class that stores customer details like name,
account number, account type, PIN, and balance using private variables. A
Scanner is used for user input, and LocalDateTime tracks transaction time.
2. Constructor
The constructor initializes the bank branch name when an object of the class
is created.
4. Withdrawal (withdraw)
Allows the user to withdraw money after verifying the account number and
PIN. Ensures the withdrawal amount is valid and not greater than the balance.
5. Deposit (deposit)
Verifies the account and PIN, then adds the entered amount to the balance.
Invalid inputs trigger appropriate error messages.
7.
7. Balance Enquiry (balanceEnquiry)
Displays account details like account number, name, balance, type, and
current date & time.
9. Main Method
Creates a Bank object and calls inp() to start the system.
8.
Conclusion
Thank You
9.