Sainik School Amaravathinagar
Sainik School Amaravathinagar
Sainik School Amaravathinagar
PROJECT REPORT ON
“ATM MACHINE”
ROLL NO : 6467
NAME : C.ADHIYAMAAN
CLASS : XII - A
SUBJECT : COMPUTERSCIENCE
PGT (CS)
CERTIFICATE
Amaravathinagar on______________.
Master IC
Examiner:
Name: _______________
Signature
:Date:
TABLE OF CONTENTS [ T O C ]
01 ACKNOWLEDGEMENT 03
02 INTRODUCTION 06
04 PROPOSED SYSTEM 08
07 FLOW CHART 23
08 SOURCE CODE 27
09 OUTPUT 55
10 TESTING 61
11 INSTALLATION PROCEDURE 65
13 BIBLIOGRAPHY 70
ACKNOWLEDGEMENT
INTRODUCTION
Note :
PROPOSED SYSTEM
keep pace with time, to bring about the best result without
the computer.
their work faster and easier. Now only this software has to be
INITIATION PHASE
DESIGN PHASE
DEVELOPMENT PHASE
IMPLEMENTATION PHASE
FLOW CHART
START
CONN = SQL . CONNECT (HOST ='LOCALHOST ', USER ='ROOT ', PASSWORD =' MANAGER ',DATABASE = ' ATM _MACHINE' )
c1=conn.cursor()
print(" WELCOME TO OUR BANK ")
print("2.To login")
print("
3.Exit"
)
op=int(input("Enter
your choice :"))
if op==1:
c="y"
While c==”Y”
cb="select * from records where ACCONT_NO={}".format(m)
IF NO CREATE ACCOUNT
IF OP==2
print("1.Depositng money") print("2.withdrawing
money") print("3.Transfering money") print("4.Checking
IF CH==1,WITHDRAW THE MONEY balance")
print("5.Changing Account number ")
stop
SOURCE CODE
Note :
SOLUTION:
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":
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:
ab="insert into
records(ACCONT_NO,PASSWORD,NAME)
values({},{},'{}')".format(m,passw,name)
print("==================================
=======================================
=======")
c1.execute(ab)
conn.commit()
print("==================================
=======================================
=======")
print("==================================
=======================================
=======")
c1.execute(sr)
conn.commit()
c1.execute(ef)
conn.commit()
print("sucessfully deposited")
print("Thank you")
print("Visit again")
break
if op==2:
y="y"
while y=="y":
c1.execute(cb)
c1.fetchall()
data=c1.rowcount
if data==1:
pas=int(input("Enter your
password :"))
print("==================================
=======================================
=======")
c1.execute(e)
a=c1.fetchone()
d=list(a)
if pas==d[0]:
print("correct")
print("1.Depositng money")
print("2.withdrawing money")
print("3.Transfering money")
print("4.Checking balance")
print("==================================
=======================================
=======")
if r==1:
amt=int(input("Enter the
money to be deposited:"))
print("==================================
=======================================
=======")
sr="update records set
CR_AMT=CR_AMT + {} where
ACCONT_NO={}".format(amt,acct)
c1.execute(sr)
conn.commit()
c1.execute(ef)
conn.commit()
print("sucessfully deposited")
print("==================================
=======================================
=======")
if t=="y":
continue
else:
print("Thank you")
if r==2:
amt=int(input("Enter the
money to withdraw:"))
print("==================================
=======================================
=======")
c1.execute(ah)
m=c1.fetchone()
if amt >m[0]:
print("==================================
=======================================
=======")
else:
c1.execute(ed)
c1.execute(sr)
conn.commit()
print("Sucessfully updatad")
if y=="y":
continue
else:
print("Thank you")
if r==3:
print("==================================
=======================================
=======")
cb="select * from records
where ACCONT_NO={}".format(act)
c1.execute(cb)
c1.fetchall()
data=c1.rowcount
if data==1:
m=int(input("Enter the
money to be transferred :"))
print("==================================
=======================================
=======")
ah="select BALANCE from
records where accont_no={}".format(acct)
c1.execute(ah)
c=c1.fetchone()
if m > c[0]:
print("==================================
=======================================
=======")
else:
c1.execute(av)
c1.execute(cv)
c1.execute(w)
c1.execute(t)
conn.commit()
print("Sucessfully
transfered")
continue
else:
print("Thank you")
if r==4:
c1.execute(ma)
k=c1.fetchone()
print("Balance in your
account=",k)
print("==================================
=======================================
=======")
y=input("do you want to
continue y/n -")
if y=="y":
continue
else:
print("Thank you")
if r==5:
c1.execute(cb)
c1.fetchall()
data=c1.rowcount
if data==1:
print("This number already
exists")
print("Try again")
if y=="y":
continue
else:
print("Thank you")
else:
name=input("Enter your
name")
c1.execute(ar)
conn.commit()
else:
print("Wrong password")
print("==================================
=======================================
=======")
else:
print("Exiting")
c1.close()
TESTING
TESTING METHODS
Software testing methods are traditionally divided into black
box testing and white box testing. These two approaches are used to
describe the point of view that a test engineer takes when designing
test cases.
BLACK BOX TESTING
SPECIFICATION-BASED TESTING
The black box tester has no "bonds" with the code, and a
tester's perception is very simple: a code must have bugs. Using the
principle, "Ask and you shall receive," black box testers find bugs
where programmers don't. But, on the other hand, black box testing
has been said to be "like a walk in a dark labyrinth without a
flashlight," because the tester doesn't know how the software being
tested was actually constructed.
That's why there are situations when (1) a black box tester
writes many test cases to check something that can be tested by
only one test case, and/or (2) some parts of the back end are not
tested at all. Therefore, black box testing has the advantage of "an
unaffiliated opinion," on the one hand, and the disadvantage of "blind
exploring," on the other.
INSTALLATION PROCEDURE
ATM MACHINE:-
Pre-Requisites :
Installation :-
1. There will be two folders namely 'Python Files' and
'EXE files' in the folder 'Source Code'.
I) mysql.connector or pymysql
II) matplotlib.
ATHALON(3800+- 4200+
DUAL CORE)
X. Printer : required
SOFTWARE REQUIREMENTS:
I. Windows OS
II. Python
BIBLIOGRAPHY
• https://en.wikipedia.org/
***