The task assigned to me was to create an ATM interface that would allow users to access their bank account, check their balance, deposit money, and withdraw money.
Here are the instructions on which my project is based on:-
- Create a class to represent the ATM machine.
- Design the user interface for the ATM, including options such as withdrawing, depositing, and checking the balance.
- Implement methods for each option, such as withdraw(amount), deposit(amount), and checkBalance().
- Create a class to represent the user's bank account, which stores the account balance.
- Connect the ATM class with the user's bank account class to access and modify the account balance.
- Validate user input to ensure it is within acceptable limits (e.g., sufficient balance for withdrawals).
- Display appropriate messages to the user based on their chosen options and the success or failure of their transactions.