This project consists of two main components:
- ATM Management System: A simple ATM simulation that allows users to check their account balance, deposit money, and withdraw funds.
- Longest Palindromic Substring Finder: A program that finds the longest palindromic substring in a given input string.
The ATM system allows users to perform the following operations:
- Check Balance: View the current balance of the account.
- Deposit Money: Add funds to the account.
- Withdraw Money: Withdraw funds from the account (if sufficient balance is available).
- ATM: Manages accounts and facilitates ATM operations.
- Account: Represents a user’s account, storing account details like account number, account holder's name, and balance.
- The program starts by creating a new ATM object and adding an account to it.
- The user can interact with the ATM by choosing from a set of options (check balance, deposit, withdraw).
- The ATM will prompt the user for the account number and perform the requested operation if the account exists.
This component finds the longest palindromic substring in a given string.
- The user is prompted to input a string.
- The program checks all possible substrings and identifies the longest palindrome.
- It returns the longest palindromic substring found.
-
ATM Management System:
- Run the
Mainclass to simulate the ATM system. You will be prompted with an interface to perform ATM operations.
- Run the
-
Longest Palindromic Substring Finder:
- Run the
JavaTest2class. It will ask you to enter a string and output the longest palindromic substring.
- Run the
- Java 8 or higher.
- No additional libraries required.