This project simulates an ATM management system with functionalities such as checking balance, depositing money, withdrawing money, transferring funds, and viewing transaction history. The user interacts with the system through a command-line interface.
- PIN Authentication: Users must enter a 4-digit PIN to access the system.
- Check Balance: View the current account balance.
- Cash Deposit: Deposit money into the account.
- Cash Withdrawal: Withdraw money from the account.
- Funds Transfer: Transfer funds to another account.
- Transaction History: View the history of all transactions.
- Session Management: Clear transaction history at the start of a new session.
- Clone the repository or download the source code.
- Compile the code using a C compiler.
- Run the executable to start the ATM simulation.
- pin: Function for PIN authentication.
- menu: Function to display the main menu and get the user's choice.
- checkBalance: Function to display the current balance.
- deposit1: Function to handle cash deposits.
- withdrawl: Function to handle cash withdrawals.
- fund_transfer: Function to handle fund transfers.
- isNumeric: Helper function to check if a string contains only numeric characters.
- saveTransactionToFile: Function to save transaction details to a file.
- checkTransaction: Function to display the transaction history.
- clearFile: Function to clear the transaction history at the start of a new session.
- countinue1: Function to ask the user if they want to perform another transaction.
- line: Function to print a separator line.
Here's an example of how to run the ATM management system:
- Start the program and enter the 4-digit PIN.
- Choose an option from the menu (e.g., check balance, deposit money).
- Follow the prompts to complete the selected transaction.
- View the updated balance or transaction history as needed.
- Ensure that the transaction file path is correctly set in the code.
- This project uses file I/O to save and retrieve transaction details. Make sure the file path is accessible and has the necessary permissions.