SlideShare a Scribd company logo
3
Most read
4
Most read
5
Most read
ATM SIMULATION
Open Source Technology
S. E. Computer Engineering
Division B
Under the guidance of
Ms. Priya Chaudhri
By
Suraj Maurya 53
Neel Shukla 65
Department of Computer Engineering
St. Francis Institute of Technology
University of Mumbai
2018-2019
2
TABLE OF CONTENTS
Chapter Contents Page
No.
1 INTRODUCTION 3
2 PROBLEM DEFINITION 3
3 Algorithm / Step 4
4 IMPLEMENTATION 5-12
5 RESULTS 13
6 CONCLUSIONS AND FUTURE SCOPE 14
7 REFERENCES 14
3
INTRODUCTION
The aim of the ATM Simulation System project is to build a Python based ATM (Automated
Teller Machine) Simulation System. The introduction of ATM’s 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’s.
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 hour 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 a valid bank ATM card.
4
2. PROBLEM DEFINITION
THE SOURCE CODE DECLARED ABOVE FOR THE PROGRAM OF ATM
SIMULATION HAS BEEN TESTED AND IT HAS BEEN FOUND THAT THE ABOVE
SOURCE CODE IS OKAY AND CORRECT. THE PROGRAM INVOLVES MANY
TYPE OF CONVERSIONS. THESE CONVERSIONS HAS TO DONE CAREFULLY.
MAINLY THERE ARE TWO TYPES OF TESTING:
1-SYSTEM TESTING AND
2-INTEGRATION TESTING
SYSTEM TESTING INVOLVES WHOLE TESTING OF PROGRAM AT ONCE AND
INTEGRATION TESTING
INVOLVES THE BREAKING OF PROGRAM INTO MODULES & THEN TEST.
3. Algorithm / Step (Explain the different modules/functions used )
1) We have run the program in python IDLE
2) Our project is based on ATM SIMULATION
3) The fuctions of atm simulation are:
enter the correctusername and passsword to login
Deposit:this function helps us to
deposit the money
withdrawal:Through this function we can
take our money from the
machine
Statement:we get the mini statement of
our account
Pin Change:through this function we can change the pin of our
credit card.
Quit:this function helps us to terminate the process
5
4. IMPLEMENTATION(Code)
import getpass
import string
import os
users = ['user1', 'user2', 'user3']
pins = ['1111', '2222', '3333']
amounts = [1000, 2000, 3000]
count = 0
# while loop checks existance of the enterd username
while True:
user = input('nENTER USER NAME: ')
user = user.lower()
if user in users:
if user == users[0]:
n = 0
elif user == users[1]:
n = 1
else:
n = 2
break
else:
print('----------------')
print('****************')
print('INVALID USERNAME')
print('****************')
print('----------------')
# comparing pin
while count < 3:
print('------------------')
print('******************')
pin = str(getpass.getpass('PLEASEENTER PIN: '))
print('******************')
print('------------------')
if pin.isdigit():
if user == 'user1':
if pin == pins[0]:
break
else:
count += 1
6
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('PIN CONSISTS OF 4 DIGITS')
print('************************')
print('------------------------')
count += 1
# in case of a valid pin- continuing, or exiting
if count == 3:
print('-----------------------------------')
print('***********************************')
print('3 UNSUCCESFUL PIN ATTEMPTS, EXITING')
7
print('!!!!!YOUR CARD HAS BEEN LOCKED!!!!!')
print('***********************************')
print('-----------------------------------')
exit()
print('-------------------------')
print('*************************')
print('LOGIN SUCCESFUL, CONTINUE')
print('*************************')
print('-------------------------')
print()
print('--------------------------')
print('**************************')
print(str.capitalize(users[n]), 'welcome to ATM')
print('**************************')
print('----------ATM SYSTEM-----------')
# Main menu
while True:
#os.system('clear')
print('-------------------------------')
print('*******************************')
response= input('SELECT FROM FOLLOWING OPTIONS:
nStatement__(S) nWithdraw___(W) nDeposit__(D) nChange PIN_(P)
nQuit_______(Q) n: ').lower()
print('*******************************')
print('-------------------------------')
valid_responses = ['s', 'w', 'd', 'p', 'q']
response= response.lower()
if response== 's':
print('---------------------------------------------')
print('*********************************************')
print(str.capitalize(users[n]), 'YOU HAVE ', amounts[n],'RUPEES ON
YOUR ACCOUNT.')
print('*********************************************')
print('---------------------------------------------')
elif response== 'w':
print('---------------------------------------------')
print('*********************************************')
cash_out= int(input('ENTER AMOUNT YOU WOULD LIKE TO
WITHDRAW: '))
print('*********************************************')
print('---------------------------------------------')
8
if cash_out%10!= 0:
print('------------------------------------------------------')
print('******************************************************')
print('AMOUNT YOU WANT TO WITHDRAW MUST TO
MATCH 10 RUPEE NOTES')
print('******************************************************')
print('------------------------------------------------------')
elif cash_out> amounts[n]:
print('-----------------------------')
print('*****************************')
print('YOU HAVE INSUFFICIENT BALANCE')
print('*****************************')
print('-----------------------------')
else:
amounts[n] = amounts[n] - cash_out
print('-----------------------------------')
print('***********************************')
print('YOUR NEW BALANCE IS: ', amounts[n], 'RUPEES')
print('***********************************')
print('-----------------------------------')
elif response== 'd':
print()
print('---------------------------------------------')
print('*********************************************')
cash_in = int(input('ENTER AMOUNT YOU WANT TO DEPOSIT:'))
print('*********************************************')
print('---------------------------------------------')
print()
if cash_in%10 != 0:
print('----------------------------------------------------')
print('****************************************************')
print('AMOUNT YOU WANT TO LODGE MUST TO MATCH
10 RUPEES NOTES')
print('****************************************************')
print('----------------------------------------------------')
else:
amounts[n] = amounts[n] + cash_in
9
print('----------------------------------------')
print('****************************************')
print('YOUR NEW BALANCE IS: ', amounts[n], 'RUPEES')
print('****************************************')
print('----------------------------------------')
elif response== 'p':
print('-----------------------------')
print('*****************************')
new_pin = str(getpass.getpass('ENTER A NEW PIN: '))
print('*****************************')
print('-----------------------------')
if new_pin.isdigit() and new_pin != pins[n] and len(new_pin) == 4:
print('------------------')
print('******************')
new_ppin = str(getpass.getpass('CONFIRMNEW PIN: '))
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(' NEW PIN MUST CONSIST OF 4 DIGITS nAND
MUST BE DIFFERENT TO PREVIOUS PIN')
print('*************************************')
print('-------------------------------------')
elif response== 'q':
exit()
else:
print('------------------')
print('******************')
print('RESPONSE NOT VALID')
print('******************')
print('------------------')
5. RESULTS (SNAPSHOTS)
10
11
12
6. CONCLUSION AND FUTURE SCOPE
We have successfully completed our mini project ‘ATM Simulation’ in python.
We have performed operations like 1.)withdrawal 2.)Cash Deposit 3.)Pin change(completed
invisible pin for extra security only unto 3 attempts after that the card is automatically blocked.)
Time taken to complete the project is roughly two weeks.

More Related Content

What's hot (20)

PPT
Atm System
Nila Kamal Nayak
 
PDF
Atm project
Khaled Salmeen BAzqameh
 
DOCX
Banking Management System Project documentation
Chaudhry Sajid
 
DOCX
BANK MANAGEMENT SYSTEM report
Nandana Priyanka Eluri
 
DOCX
Project report on (atm MAnagment system)
Muhammad Umer Lari
 
PPT
Atm system_project
PRasad Bhamre
 
DOCX
Online Shop Project Report
Jayed Imran
 
PDF
e-commerce web development project report (Bookz report)
Mudasir Ahmad Bhat
 
PPTX
Employee Management System
Monotheist Sakib
 
PPTX
Food order
Arman Ahmed
 
DOC
SYNOPSIS ON BANK MANAGEMENT SYSTEM
Nitish Xavier Tirkey
 
DOCX
Minor project Report for "Quiz Application"
Harsh Verma
 
DOCX
Bank management system
sumanadas37
 
PPT
Atm Simulator
Syed Jamil
 
DOCX
Uml diagram for_hospital_management_system
Pradeep Bhosale
 
PPTX
Quiz application
Harsh Verma
 
PPTX
E recipe-managment
AmitSaha123
 
PDF
Harsh Mathur Final Year Project Report on Restaurant Billing System
Harsh Mathur
 
PPTX
Attendance management system
SHIVANGI GOEL
 
PDF
Attendance management system project report.
Manoj Kumar
 
Atm System
Nila Kamal Nayak
 
Banking Management System Project documentation
Chaudhry Sajid
 
BANK MANAGEMENT SYSTEM report
Nandana Priyanka Eluri
 
Project report on (atm MAnagment system)
Muhammad Umer Lari
 
Atm system_project
PRasad Bhamre
 
Online Shop Project Report
Jayed Imran
 
e-commerce web development project report (Bookz report)
Mudasir Ahmad Bhat
 
Employee Management System
Monotheist Sakib
 
Food order
Arman Ahmed
 
SYNOPSIS ON BANK MANAGEMENT SYSTEM
Nitish Xavier Tirkey
 
Minor project Report for "Quiz Application"
Harsh Verma
 
Bank management system
sumanadas37
 
Atm Simulator
Syed Jamil
 
Uml diagram for_hospital_management_system
Pradeep Bhosale
 
Quiz application
Harsh Verma
 
E recipe-managment
AmitSaha123
 
Harsh Mathur Final Year Project Report on Restaurant Billing System
Harsh Mathur
 
Attendance management system
SHIVANGI GOEL
 
Attendance management system project report.
Manoj Kumar
 

Similar to Atm simulation mini project using Python programming language (20)

PPTX
Computer science engineering College in t
hrgamers1107
 
PPT
Atm security
Pushkar Dutt
 
PDF
python pre-submission report.pdf
SruthiMugle
 
PPT
Atm.ppt
siva edara
 
PPTX
Optimizing User Experience in ATM Management Systems
bhikharilal0711
 
DOCX
Z specifaction
Mubashar Mehmood
 
PPTX
Atm software
Shashwat Singh
 
PDF
SECURE DATA ENCRYPTION FOR ATM TRANSACTIONS
IRJET Journal
 
PDF
IRJET - Anti-Fraud ATM Security System
IRJET Journal
 
PPTX
ATM USING PYTHON 2.32.pptx
A136AkashMemane
 
PPTX
ATM BANKING SYSTEM
sathish sak
 
PPTX
oop.pptx
usamakhalid939428
 
PDF
Lo39
lksoo
 
PDF
08
liankei
 
PPTX
ATM Security System using Iot Components .pptx
VinayMN3
 
PDF
Document Atm machine using c language mini project.pdf
NEERAJRAJPUT81
 
PPTX
High protection ATM system with fingerprint identification technology
Alfred Oboi
 
PPT
Atm system
Hardik Kakadiya
 
DOC
The atm system
wajahat Gul
 
DOC
The atm system
Lê Đức
 
Computer science engineering College in t
hrgamers1107
 
Atm security
Pushkar Dutt
 
python pre-submission report.pdf
SruthiMugle
 
Atm.ppt
siva edara
 
Optimizing User Experience in ATM Management Systems
bhikharilal0711
 
Z specifaction
Mubashar Mehmood
 
Atm software
Shashwat Singh
 
SECURE DATA ENCRYPTION FOR ATM TRANSACTIONS
IRJET Journal
 
IRJET - Anti-Fraud ATM Security System
IRJET Journal
 
ATM USING PYTHON 2.32.pptx
A136AkashMemane
 
ATM BANKING SYSTEM
sathish sak
 
Lo39
lksoo
 
ATM Security System using Iot Components .pptx
VinayMN3
 
Document Atm machine using c language mini project.pdf
NEERAJRAJPUT81
 
High protection ATM system with fingerprint identification technology
Alfred Oboi
 
Atm system
Hardik Kakadiya
 
The atm system
wajahat Gul
 
The atm system
Lê Đức
 
Ad

More from Mauryasuraj98 (13)

PDF
Image encryption using jumbling salting
Mauryasuraj98
 
PPTX
Movie recommendation system using collaborative filtering system
Mauryasuraj98
 
PDF
Movies recommendation system in R Studio, Machine learning
Mauryasuraj98
 
PDF
Evolution of computer generation.
Mauryasuraj98
 
DOCX
Case study on Intel core i3 processor.
Mauryasuraj98
 
DOCX
CAR PARKING SYSTEM USING VISUAL STUDIO C++ (OPERATING SYSTEM MINI PROJECT )
Mauryasuraj98
 
PDF
Ludo game using c++ with documentation
Mauryasuraj98
 
PDF
Ludo mini project in c++
Mauryasuraj98
 
PDF
Telephone directory using c language
Mauryasuraj98
 
PDF
Mini cnc plotter or printer
Mauryasuraj98
 
PPTX
Mini Cnc Printer
Mauryasuraj98
 
PPTX
E wallet
Mauryasuraj98
 
PPTX
Pointer in C++
Mauryasuraj98
 
Image encryption using jumbling salting
Mauryasuraj98
 
Movie recommendation system using collaborative filtering system
Mauryasuraj98
 
Movies recommendation system in R Studio, Machine learning
Mauryasuraj98
 
Evolution of computer generation.
Mauryasuraj98
 
Case study on Intel core i3 processor.
Mauryasuraj98
 
CAR PARKING SYSTEM USING VISUAL STUDIO C++ (OPERATING SYSTEM MINI PROJECT )
Mauryasuraj98
 
Ludo game using c++ with documentation
Mauryasuraj98
 
Ludo mini project in c++
Mauryasuraj98
 
Telephone directory using c language
Mauryasuraj98
 
Mini cnc plotter or printer
Mauryasuraj98
 
Mini Cnc Printer
Mauryasuraj98
 
E wallet
Mauryasuraj98
 
Pointer in C++
Mauryasuraj98
 
Ad

Recently uploaded (20)

PDF
DIGESTION OF CARBOHYDRATES ,PROTEINS AND LIPIDS
raviralanaresh2
 
PPTX
How to Add New Item in CogMenu in Odoo 18
Celine George
 
PDF
Lesson 1 : Science and the Art of Geography Ecosystem
marvinnbustamante1
 
PPTX
JSON, XML and Data Science introduction.pptx
Ramakrishna Reddy Bijjam
 
PPTX
Peer Teaching Observations During School Internship
AjayaMohanty7
 
PPTX
2025 Completing the Pre-SET Plan Form.pptx
mansk2
 
PPTX
Photo chemistry Power Point Presentation
mprpgcwa2024
 
PPTX
Elo the Hero is an story about a young boy who became hero.
TeacherEmily1
 
PPTX
How to use _name_search() method in Odoo 18
Celine George
 
PDF
The Power of Compound Interest (Stanford Initiative for Financial Decision-Ma...
Stanford IFDM
 
PPT
M&A5 Q1 1 differentiate evolving early Philippine conventional and contempora...
ErlizaRosete
 
PPTX
How to Setup Automatic Reordering Rule in Odoo 18 Inventory
Celine George
 
PDF
Free eBook ~100 Common English Proverbs (ebook) pdf.pdf
OH TEIK BIN
 
PDF
Rapid Mathematics Assessment Score sheet for all Grade levels
DessaCletSantos
 
PDF
Andreas Schleicher_Teaching Compass_Education 2040.pdf
EduSkills OECD
 
PPTX
How to Configure Taxes in Company Currency in Odoo 18 Accounting
Celine George
 
PPTX
A Case of Identity A Sociological Approach Fix.pptx
Ismail868386
 
PDF
Romanticism in Love and Sacrifice An Analysis of Oscar Wilde’s The Nightingal...
KaryanaTantri21
 
PPTX
Elo the HeroTHIS IS A STORY ABOUT A BOY WHO SAVED A LITTLE GOAT .pptx
JoyIPanos
 
PPTX
Urban Hierarchy and Service Provisions.pptx
Islamic University of Bangladesh
 
DIGESTION OF CARBOHYDRATES ,PROTEINS AND LIPIDS
raviralanaresh2
 
How to Add New Item in CogMenu in Odoo 18
Celine George
 
Lesson 1 : Science and the Art of Geography Ecosystem
marvinnbustamante1
 
JSON, XML and Data Science introduction.pptx
Ramakrishna Reddy Bijjam
 
Peer Teaching Observations During School Internship
AjayaMohanty7
 
2025 Completing the Pre-SET Plan Form.pptx
mansk2
 
Photo chemistry Power Point Presentation
mprpgcwa2024
 
Elo the Hero is an story about a young boy who became hero.
TeacherEmily1
 
How to use _name_search() method in Odoo 18
Celine George
 
The Power of Compound Interest (Stanford Initiative for Financial Decision-Ma...
Stanford IFDM
 
M&A5 Q1 1 differentiate evolving early Philippine conventional and contempora...
ErlizaRosete
 
How to Setup Automatic Reordering Rule in Odoo 18 Inventory
Celine George
 
Free eBook ~100 Common English Proverbs (ebook) pdf.pdf
OH TEIK BIN
 
Rapid Mathematics Assessment Score sheet for all Grade levels
DessaCletSantos
 
Andreas Schleicher_Teaching Compass_Education 2040.pdf
EduSkills OECD
 
How to Configure Taxes in Company Currency in Odoo 18 Accounting
Celine George
 
A Case of Identity A Sociological Approach Fix.pptx
Ismail868386
 
Romanticism in Love and Sacrifice An Analysis of Oscar Wilde’s The Nightingal...
KaryanaTantri21
 
Elo the HeroTHIS IS A STORY ABOUT A BOY WHO SAVED A LITTLE GOAT .pptx
JoyIPanos
 
Urban Hierarchy and Service Provisions.pptx
Islamic University of Bangladesh
 

Atm simulation mini project using Python programming language

  • 1. ATM SIMULATION Open Source Technology S. E. Computer Engineering Division B Under the guidance of Ms. Priya Chaudhri By Suraj Maurya 53 Neel Shukla 65 Department of Computer Engineering St. Francis Institute of Technology University of Mumbai 2018-2019
  • 2. 2 TABLE OF CONTENTS Chapter Contents Page No. 1 INTRODUCTION 3 2 PROBLEM DEFINITION 3 3 Algorithm / Step 4 4 IMPLEMENTATION 5-12 5 RESULTS 13 6 CONCLUSIONS AND FUTURE SCOPE 14 7 REFERENCES 14
  • 3. 3 INTRODUCTION The aim of the ATM Simulation System project is to build a Python based ATM (Automated Teller Machine) Simulation System. The introduction of ATM’s 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’s. 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 hour 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 a valid bank ATM card.
  • 4. 4 2. PROBLEM DEFINITION THE SOURCE CODE DECLARED ABOVE FOR THE PROGRAM OF ATM SIMULATION HAS BEEN TESTED AND IT HAS BEEN FOUND THAT THE ABOVE SOURCE CODE IS OKAY AND CORRECT. THE PROGRAM INVOLVES MANY TYPE OF CONVERSIONS. THESE CONVERSIONS HAS TO DONE CAREFULLY. MAINLY THERE ARE TWO TYPES OF TESTING: 1-SYSTEM TESTING AND 2-INTEGRATION TESTING SYSTEM TESTING INVOLVES WHOLE TESTING OF PROGRAM AT ONCE AND INTEGRATION TESTING INVOLVES THE BREAKING OF PROGRAM INTO MODULES & THEN TEST. 3. Algorithm / Step (Explain the different modules/functions used ) 1) We have run the program in python IDLE 2) Our project is based on ATM SIMULATION 3) The fuctions of atm simulation are: enter the correctusername and passsword to login Deposit:this function helps us to deposit the money withdrawal:Through this function we can take our money from the machine Statement:we get the mini statement of our account Pin Change:through this function we can change the pin of our credit card. Quit:this function helps us to terminate the process
  • 5. 5 4. IMPLEMENTATION(Code) import getpass import string import os users = ['user1', 'user2', 'user3'] pins = ['1111', '2222', '3333'] amounts = [1000, 2000, 3000] count = 0 # while loop checks existance of the enterd username while True: user = input('nENTER USER NAME: ') user = user.lower() if user in users: if user == users[0]: n = 0 elif user == users[1]: n = 1 else: n = 2 break else: print('----------------') print('****************') print('INVALID USERNAME') print('****************') print('----------------') # comparing pin while count < 3: print('------------------') print('******************') pin = str(getpass.getpass('PLEASEENTER PIN: ')) print('******************') print('------------------') if pin.isdigit(): if user == 'user1': if pin == pins[0]: break else: count += 1
  • 6. 6 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('PIN CONSISTS OF 4 DIGITS') print('************************') print('------------------------') count += 1 # in case of a valid pin- continuing, or exiting if count == 3: print('-----------------------------------') print('***********************************') print('3 UNSUCCESFUL PIN ATTEMPTS, EXITING')
  • 7. 7 print('!!!!!YOUR CARD HAS BEEN LOCKED!!!!!') print('***********************************') print('-----------------------------------') exit() print('-------------------------') print('*************************') print('LOGIN SUCCESFUL, CONTINUE') print('*************************') print('-------------------------') print() print('--------------------------') print('**************************') print(str.capitalize(users[n]), 'welcome to ATM') print('**************************') print('----------ATM SYSTEM-----------') # Main menu while True: #os.system('clear') print('-------------------------------') print('*******************************') response= input('SELECT FROM FOLLOWING OPTIONS: nStatement__(S) nWithdraw___(W) nDeposit__(D) nChange PIN_(P) nQuit_______(Q) n: ').lower() print('*******************************') print('-------------------------------') valid_responses = ['s', 'w', 'd', 'p', 'q'] response= response.lower() if response== 's': print('---------------------------------------------') print('*********************************************') print(str.capitalize(users[n]), 'YOU HAVE ', amounts[n],'RUPEES ON YOUR ACCOUNT.') print('*********************************************') print('---------------------------------------------') elif response== 'w': print('---------------------------------------------') print('*********************************************') cash_out= int(input('ENTER AMOUNT YOU WOULD LIKE TO WITHDRAW: ')) print('*********************************************') print('---------------------------------------------')
  • 8. 8 if cash_out%10!= 0: print('------------------------------------------------------') print('******************************************************') print('AMOUNT YOU WANT TO WITHDRAW MUST TO MATCH 10 RUPEE NOTES') print('******************************************************') print('------------------------------------------------------') elif cash_out> amounts[n]: print('-----------------------------') print('*****************************') print('YOU HAVE INSUFFICIENT BALANCE') print('*****************************') print('-----------------------------') else: amounts[n] = amounts[n] - cash_out print('-----------------------------------') print('***********************************') print('YOUR NEW BALANCE IS: ', amounts[n], 'RUPEES') print('***********************************') print('-----------------------------------') elif response== 'd': print() print('---------------------------------------------') print('*********************************************') cash_in = int(input('ENTER AMOUNT YOU WANT TO DEPOSIT:')) print('*********************************************') print('---------------------------------------------') print() if cash_in%10 != 0: print('----------------------------------------------------') print('****************************************************') print('AMOUNT YOU WANT TO LODGE MUST TO MATCH 10 RUPEES NOTES') print('****************************************************') print('----------------------------------------------------') else: amounts[n] = amounts[n] + cash_in
  • 9. 9 print('----------------------------------------') print('****************************************') print('YOUR NEW BALANCE IS: ', amounts[n], 'RUPEES') print('****************************************') print('----------------------------------------') elif response== 'p': print('-----------------------------') print('*****************************') new_pin = str(getpass.getpass('ENTER A NEW PIN: ')) print('*****************************') print('-----------------------------') if new_pin.isdigit() and new_pin != pins[n] and len(new_pin) == 4: print('------------------') print('******************') new_ppin = str(getpass.getpass('CONFIRMNEW PIN: ')) 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(' NEW PIN MUST CONSIST OF 4 DIGITS nAND MUST BE DIFFERENT TO PREVIOUS PIN') print('*************************************') print('-------------------------------------') elif response== 'q': exit() else: print('------------------') print('******************') print('RESPONSE NOT VALID') print('******************') print('------------------') 5. RESULTS (SNAPSHOTS)
  • 10. 10
  • 11. 11
  • 12. 12 6. CONCLUSION AND FUTURE SCOPE We have successfully completed our mini project ‘ATM Simulation’ in python. We have performed operations like 1.)withdrawal 2.)Cash Deposit 3.)Pin change(completed invisible pin for extra security only unto 3 attempts after that the card is automatically blocked.) Time taken to complete the project is roughly two weeks.