Atm I Python Mini Project
Atm I Python Mini Project
On
of degree of
BACHELOR OF TECHNOLOGY
In
CIVIL ENGINEERING
By
SHRAVANI 17H51A0148
GOUTHAMI 17H51A0155
------------
Kandlakoya(V), Medchal-501401
DEPARTMENT OF CIVIL ENGINEERING
(Autonomous)
Approved by AICTE, permanently Affiliated to JNTUH, Hyderabad.
Kandlakoya(V), Medchal-501401
BONAFIDE CERTIFICATE
------------- ---------------
DECLARATION
We hereby declare that the work described in the project report “ATM SIMULATAIN
THROUGH PYTHON “ has been carried under the guidance and supervision of
-------------, Assistant professor, CMRCET towards the partial fulfillment of the award of
the degree of bachelor of technology in civil engineering from CMR college of
engineering and technology, Hyderabad. This work is the original and has not been
submitted either in part or in full for the award of any other degree or diploma of any
other university
SHRAVANI (17H51A0148)
GOUTHAMI (17H51A0155)
ACKNOWLEDGEMENT
I would like to express my sincere thanks and gratitude to Dr. K. SURESH, Professor and
Head, Department of civil engineering, for his valuable suggestions and advice for
carrying out this thesis work.
I would like to thank the Faculty of Department of Civil Engineering for their positive
and helpful approaches for my engineering education and also the non-teaching staff for
their assistance.
Finally, I would like to express my deepest gratitude to my parents whose patient love
enabled me to complete this work. And at last but not the least I would like to thank God
for the successful completion of the project.
ABSTRACT:
The ATM is used by customers of a bank. Each customer has two accounts, a checking
account and a savings account. Each customer has a customer number and a Personal
Identification Number (PIN). Both must by typed into the simulation to gain access to the
accounts .Once they have gained access, the customers can select an account (checking or
savings). The balance of the selected account is displayed (initially zero). Then the
customers can deposit and withdraw money and the balance will be updated accordingly.
The application terminates when the user selects exit rather than an account. Since this is
a simulation, the ATM does not actually communicate with the bank. It simply loads a
list of customer numbers and PINs from a data file. The data file is maintained externally
to this application. This Application should interact with the user via a simple swing GUI.
TABLES OF CONTENTS:
Chapters:
Introduction
Problem definition
Algorithm
Implementation
Result
Conclusion
INTRODUCTION:
The aim of ATM Simulation System project is to build a python based ATM
(Automated Teller Machine) Simulation System. The Introduction of ATM by
various banks have brought about freedom from the interminable queues in front of
withdrawal counters at banks. This ATM Simulation System requires the constant
updating of records between the bank servers and a spread out network of ATM.
Security is the foundation of a good ATM system. This system will provide for
secure authenticated connections between users and the bank servers. The whole
process will be automated right from PIN (Personal Identification Number)
validation to transaction completion ATM Simulation System will enable two
important features of an ATM, reduction of human error in the banking system
and the possibility of 24 hours personal banking. The card details and PIN database
will be a secure module that will not be open to routine maintenance, the only
possibility of access to this database will be through queries raised from an ATM
in the presence of valid bank ATM card
PROBLEM DEFINITION:
1. SYSTEM TESTING
2. INTERGRATION TESTING
import string
import os
count = 0
while True:
user = user.lower()
if user in users:
if user == users[0]:
n=0
n=1
else:
n=2
break
else:
print('----------------')
print('****************')
print('INVALID USERNAME')
print('****************')
print('----------------')
# comparing pin
print('------------------')
print('******************')
print('******************')
print('------------------')
if pin.isdigit():
if user == 'user1':
if pin == pins[0]:
break
else:
count += 1
print('-----------')
print('***********')
print('INVALID PIN')
print('***********')
print('-----------')
print()
if user == 'user2':
if pin == pins[1]:
break
else:
count += 1
print('-----------')
print('***********')
print('INVALID PIN')
print('***********')
print('-----------')
print()
if user == 'user3':
if pin == pins[2]:
break
else:
count += 1
print('-----------')
print('***********')
print('INVALID PIN')
print('***********')
print('-----------')
print()
else:
print('------------------------')
print('************************')
print('************************')
print('------------------------')
count += 1
if count == 3:
print('-----------------------------------')
print('***********************************')
print('***********************************')
print('-----------------------------------')
exit()
print('-------------------------')
print('*************************')
print('*************************')
print('-------------------------')
print()
print('--------------------------')
print('**************************')
print('**************************')
print('----------ATM SYSTEM-----------')
# Main menu
while True:
#os.system('clear')
print('-------------------------------')
print('*******************************')
print('*******************************')
print('-------------------------------')
response = response.lower()
if response == 's':
print('---------------------------------------------')
print('*********************************************')
print('*********************************************')
print('---------------------------------------------')
elif response == 'w':
print('---------------------------------------------')
print('*********************************************')
print('*********************************************')
print('---------------------------------------------')
if cash_out%10 != 0:
print('------------------------------------------------------')
print('******************************************************')
print('******************************************************')
print('------------------------------------------------------')
print('-----------------------------')
print('*****************************')
print('*****************************')
print('-----------------------------')
else:
print('-----------------------------------')
print('***********************************')
print('***********************************')
print('-----------------------------------')
print()
print('---------------------------------------------')
print('*********************************************')
print('*********************************************')
print('---------------------------------------------')
print()
if cash_in%10 != 0:
print('----------------------------------------------------')
print('****************************************************')
print('****************************************************')
print('----------------------------------------------------')
else:
print('----------------------------------------')
print('****************************************')
print('****************************************')
print('----------------------------------------')
print('-----------------------------')
print('*****************************')
print('*****************************')
print('-----------------------------')
print('------------------')
print('******************')
print('*******************')
print('-------------------')
if new_ppin != new_pin:
print('------------')
print('************')
print('PIN MISMATCH')
print('************')
print('------------')
else:
pins[n] = new_pin
print('NEW PIN SAVED')
else:
print('-------------------------------------')
print('*************************************')
print('*************************************')
print('-------------------------------------')
exit()
else:
print('------------------')
print('******************')
print('******************')
print('------------------')
RESULT:
3. Statement:
4. Withdrawal:
5. PIN Change:
6. Quit:
CONCLUSION:
The main complaint heard about ATM machines is that while they are convenient,
they are expensive to use.
In the blink of an eye, we swipe the card and now have cash on hand. In addition
to pulling money out, the ATM machine also makes it convenient to deposit
money. transfer money, and check balances. Best of all, to use an ATM machine,
we do not have to go to the bank.
We will find ATM machines at other banks, grocery stores, shopping malls, along
the roadside.