Atm Machine Computer Project
Atm Machine Computer Project
Atm Machine Computer Project
Subject
COMPUTER SCIENCE
Submitted By
S. SIDDHARTH
A. PRAJITH
S. THARUN BHALAAJI
Guided By
I hereby declare that the project report submitted in partial fulfillment of the
CBSE curriculum. The data used in the COMPUTER SCIENCE project has been
and reliable.
Place: Dindigul
ii
BONAFIDE CERTIFICATE
is based on the result of studies carried out by him under my guidance during year
2022-2023.
This project report is submitted for the AISSCE (class XII) Examination in
iii
ACKNOWLEDGEMENT
completing this project. I sincerely thank the Management, the Senior Advisor
gratitude and thanks to resource persons for rendering me their valuable time and
attention. I thank my family members who have been a great source of moral
support.
the project and to the people who have willingly helped me out with their abilities.
possible.
A.PRAJITH
iv
ATM PROJECT
1
INDEX
2 Introduction to python
4
3 Introduction to MySQL 6
4 System requirements 7
5 Source Code 8
7 Conclusion 24
9 Bibliography 26
2
INTRODUCTION TO ATM PROJECT
without any help from bank representatives. There are two types of Automated
Teller Machines (ATMs). The basic one allows the customer to only draw cash
and receive a report of the account balance. Another one is a more complex
machine that accepts the deposit, provides credit card payment facilities and
normal ATM machine. It allows the user to create account, deposit money,
withdraw money, transfer the money and check Balance. The following are the
The work becomes fully automated and any information regarding the
organization can be obtained by clicking the button. Moreover, now it’s an age
3
INTRODUCTION TO PYTHON
Python is developed by Guido van Rossum. Guido van Rossum started implementing
Python in 1989. Python is a very simple programming language so even if you are new
language, which means it is easy to understand the language and thus easy to learn.
Python is available and can run on various operating systems such as Mac,
Windows, Linux, UNIX etc. This makes it a cross platform and portable language
Python is free to download and use. This means you can download it for free and
learning is a way to write logic so that a machine can learn and solve a particular
Python has syntax that allows developers to write programs with fewer lines than
Many languages are compiled, meaning the source code you create needs to be
translated into machine code, the language of your computer s processor, before it can
4
be run. Programs written in an interpreted language are passed straight to an interpreter
This makes for a quicker development cycle because you just type in your code
5
INTRODUCTION TO MYSQL
MySQL is an open-source, fast reliable, and flexible relational database
management system, typically used with PHP.MySQL is a database system used for
developing web-based software applications. MySQL used for both small and large
applications.
reliable, and flexible and easy to use. MySQL supports standard SQL (Structured Query
MySQL was developed by Michael Widenius and David Axmark in 1994. MySQL
in C, C++.
multithreaded by using kernel threads. It can handle mul8tiple CPUs if they are available.
MySQL provides transactional and non- transactional storage engines. MySQL has
table.
6
SYSTEM REQUIREMENTS
1. HARDWARE
*Processor
*Keyboard
*Mouse
*Minimum memory-2GB
2. SOFTWARE
*Operating system-oc7,os8
*Python IDLE
*MySQL
7
SOURCE CODE
8
To Create Table
import mysql.connector as sql
conn=sql.connect(host='localhost',user='root',password='manager',database='
ATM_MACHINE') if conn.is_connected():
print("sucessfully connected")
c1=conn.cursor()
9
MAIN PROGRAM
import mysql.connector as sql
conn=sql.connect(host='localhost',user='root',password='manager',database='
ATM_MACHINE') c1=conn.cursor()
print("===================================================================
= ============")
print("===================================================================
= ============")
print("2.To login")
print("3.Exit")
print("===================================================================
= ============")
print("===================================================================
= ============")
if op==1:
c="y"
while c=="y":
10
m=int(input("Enter a 4 digit number as accont number:"))
c1.execute(cb)
d=c1.fetchall()
data=c1.rowcount
if data==1:
print("===================================================================
= ============")
print("===================================================================
= ============")
if
c=="y":
continue
else:
print("Thank you.")
print("Visit again")
print("===================================================================
= ============")
else:
11
name=input("Enter your name:")
print("===================================================================
= ============")
c1.execute(ab)
conn.commit() print("Account
print("===================================================================
= ============")
print("===================================================================
=
============") sr="update records set CR_AMT={} where
ACCONT_NO={}".format(s,m)
c1.execute(sr)
conn.commit()
c1.execute(ef)
12
conn.commit()
print("sucessfully deposited")
print("Thank you")
if op==2:
y="y" while
y=="y":
c1.execute(cb)
c1.fetchall()
data=c1.rowcount
if data==1:
print("===================================================================
= ============")
c1.execute(e)
a=c1.fetchone()
d=list(a)
13
if pas==d[0]:
print("correct")
print("1.Depositng money")
print("2.withdrawing money")
print("3.Transfering money")
print("4.Checking balance")
print("===================================================================
= ============")
print("===================================================================
= ============")
if
r==1:
print("===================================================================
= ============")
14
c1.execute(sr)
balance=cr_amt-withdrawl where
ACCONT_NO={}".format(acct)
c1.execute(ef)
conn.commit()
print("sucessfully deposited")
print("===================================================================
= ============")
if
t=="y":
continue
else: print("Thank
you") if r==2:
print("===================================================================
= ============")
c1.execute(ah)
m=c1.fetchone()
15
if amt >m[0]:
than",amt)
print("===================================================================
= ============")
else:
c1.execute(ed)
c1.execute(sr) conn.commit()
print("Sucessfully updatad")
if y=="y":
continue
else:
print("Thank you")
if r==3:
16
cb="select * from records where ACCONT_NO={}".format(act)
c1.execute(cb)
c1.fetchall()
data=c1.rowcount
if data==1:
print("===================================================================
= ============")
c1.execute(ah)
c=c1.fetchone()
if m > c[0]:
print("===================================================================
= ============")
else:
17
cv="update records set balance=balance+{} where
ACCONT_NO={}".format(m,act)
c1.execute(av)
c1.execute(cv) c1.execute(w)
c1.execute(t) conn.commit()
print("Sucessfully transfered")
if y=="y":
continue
else:
print("Thank you")
if r==4:
c1.execute(ma)
account=",k)
print("===================================================================
= ============")
18
if y=="y":
continue
else: print("Thank
you") if r==5:
c1.execute(cb)
c1.fetchall()
data=c1.rowcount
if data==1:
print("Try again")
if y=="y":
continue
else:
print("Thank you")
else:
19
c1.execute(ar)
else:
print("Wrong password")
print("===================================================================
= ============")
else:
if op==3:
print("Exiting")
c1.close()
20
INPUT &
OUTPUT
21
22
23
CONCLUSION
Project provides secured authenticated connections between users and bank servers.
The whole process is automated right from PIN validation and Transaction
completion.
The ATM project was implemented by considering Python as Front end and
when working with data. It can essentially read any type, both structured and
error in the banking system and the possibility of 24 hour personal banking. The
card details and PIN data base is a secured 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 ATM card. So that the ATM Project
using Python is most secured one and the project is successfully completed.
24
FUTURE SCOPE OF THE PROJECT
where the machine owner can add functionality by downloading apps, and
have a software development kit (SDK) to add to their mobile app to affect
the authentication. Mike Lee, CEO of ATMIA and Chair of the Next-Gen
ATMs into the mobile-digital world and to set up a new wave of innovation
maintains. “It pushes everything onto the consumer’s mobile device, so they
are now interacting with the ATM through their phone, rather than a screen
25
BIBLIOGRAPHY
Web sites
1. Icbse.com
2. Cbseplus.com
3. Pythonworld.in
4. Mykvs.in
Books
26