This is a simple ATM management system written in C. It allows users to log in, deposit money, withdraw money, view transaction history, and view account details. All account and transaction data is stored in CSV files.
- Login: Enter card number and PIN to access the ATM.
- Deposit: Add money to the account.
- Withdrawal: Withdraw money from the account (if balance is sufficient).
- View Transactions: Display a list of all transactions.
- Account Details: View the account's balance, card number, and name.
- File-Based Storage: All data is saved in
account.csv
andatm_tran.csv
files.
The project consists of three files:
- atm.c: The source code of the ATM system.
- account.csv: CSV file that stores account information.
- atm_tran.csv: CSV file that stores transaction history.
Follow these steps to set up and run the ATM system:
-
Download Turbo C:
Make sure Turbo C is installed on your system. You can download Turbo C from Turbo C Downloads. -
Copy the Files:
Copy the following files to the Turbo CBIN
directory:atm.c
: The main C program file.account.csv
: The CSV file containing account information.atm_tran.csv
: The CSV file containing transaction history.
File Location:
- Typically, Turbo C is installed in a directory like
C:\TURBOC3\
. - Go to
C:\TURBOC3\BIN
and paste all three files (atm.c
,account.csv
,atm_tran.csv
).
-
Opening the Project in Turbo C:
- Launch Turbo C.
- Open the
atm.c
file by navigating toFile > Open
and selectingatm.c
from theC:\TURBOC3\BIN
directory.
-
Compile and Run:
- After opening
atm.c
, compile the code by pressingAlt + F9
. - Run the program by pressing
Ctrl + F9
.
- After opening
-
Account Setup:
-
The program reads user data from
account.csv
, which has the following format:1,1234567890,1234,Uttam Nath 2,0987654321,5678,Ankit Nath
-
Similarly, add a new account, open the account.csv file and add a new line with the format:
id,cardNo,pin,name
. Ensure the id is auto-incremented.
-
-
Using the ATM:
- Once the program starts, you'll see the welcome screen.
- You will be prompted to log in using a valid card number and PIN from
account.csv
. - After logging in, you can deposit, withdraw, view transactions, and view account information.
Below is a sample of what the program's user interface looks like in Turbo C: