Cs Project File
Cs Project File
BARGARH
“ATM MACHINE”
PROJECT SUBMITTED BY:
SANAT KUMAR SETH
KHAGESWAR DEHERI
UNDER THE GUIDANCE OF:
MRS. PRITI
BONAFIDE CERTIFICATE
This is to certify that Candidates SANAT KUMAR
ACKNOWLEDGEMENT
Apart from the efforts of me, the success of any
project depends largely on the encouragement and
guidelines of many others. I take this opportunity to
express my gratitude to the people who have been
instrumental in the successful completion of this
project.
I express deep sense of gratitude to almighty God for
giving me strength for the successful completion of
the project.
I express my deep sense of gratitude to the luminary
Mr H.P.CHAND The Principal, Kendriya Vidyalaya
Bargarh who has been continuously motivating and
extending their helping hand to us.
My sincere thanks to Mrs. PRITI, Master In-charge, A
guide, Mentor and all the above a friend, who
critically reviewed my project and helped in solving
each and every problem, occurred during
implementation of the project.
I express my gratitude to my parents for constant
encouragement while carrying out this project.
TABLE OF CONTENTS
01 ACKNOWLEDGEMENT
02 INTRODUCTION
04 PROPOSED SYSTEM
05 FLOW CHART
06 SOURCE CODE
07 OUTPUT
08 INSTALLATION PROCEDURE
Note :
software.
PROPOSED SYSTEM :
the computer.
One has to use the data management software.
START
CONN = SQL .CONNECT ( HOST =' LOCALHOST ', USER =' ROOT ', PASSWORD =' MANAGER ', DATABASE =
'ATM_MACHINE')
C1=CONN.CURSOR()
Print(“3. TO EXIT”)
OP=INT(INPUT(“ENTER YOUR
CHOICE :”))
if OP==1:
c="y"
While c==”Y”
IF OP==2
print("1.Depositng money")
IF CH==1,WITHDRAW
print("2.withdrawing THE MONEY money")
money") print("3.Transfering
print("4.Checking balance") print("5.Changing Account number")
stop
SOURCE CODE :
Create a Python project of a ATM MACHINE
MANAGEMENT SYSTEM .
Note :
SOLUTION:
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("$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$")
op=int(input("Enter your choice :"))
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("Account sucessfully created")
print("$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$")
print("$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$")
c1.execute(sr)
conn.commit()
ef="update records set
balance=cr_amt-withdrawl where
ACCONT_NO={}".format(m)
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("$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$")
print("$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$")
if r==1:
amt=int(input("Enter the
money to be deposited:"))
print("$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$")
c1.execute(sr)
conn.commit()
c1.execute(ef)
conn.commit()
print("sucessfully deposited")
t=input("Do you want to
continue y/n -")
print("$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$")
if t=="y":
continue
else:
print("Thank you")
if r==2:
amt=int(input("Enter the
money to withdraw:"))
print("$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$")
ah="select BALANCE from
records where accont_no={}".format(acct)
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:
c1.execute(cb)
c1.fetchall()
data=c1.rowcount
if data==1:
m=int(input("Enter the
money to be transferred :"))
print("$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$")
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")
if y=="y":
continue
else:
print("Thank you")
if r==4:
c1.execute(ma)
k=c1.fetchone()
print("Balance in your
account=",k)
print("$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$")
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:
name=input("Enter your
name")
ar="Update records set
accont_no={} where name='{}' and
password={}".format(i,name,pas)
c1.execute(ar)
conn.commit()
else:
print("Wrong password")
print("$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$")
else:
if op==3:
print("Exiting")
c1.close()
INSTALLATION PROCEDURE
A TM MACHINE
Pre-Requisites :
1. You have to have the following softwares for the successful
running of this software, which are:
Installation :
2. The folder 'Python Files' will contain the source code of the
software in python language. If you are running the software
by the 3rd step mentioned below you have to pre install the
following modules :-
I) mysql.connector /pymysql.
II) matplotlib.
3. Open the files in any python editors and run it to start and
work on the software.
CAUTION :
ATHALON(3800+-
FOR PENTIUM 0R
K8M800+8237R
PLUS
CHIPSET FOR
AMDATHALON
IV.RAM : 512MB+
ABOVE
X. Printer : required
SOFTWARE REQUIREMENTS:
I. Windows OS
II. Python.
BIBLIOGRAPHY :
• https://en.wikipedia.org/.
***