Atm Machine MGT
Atm Machine MGT
Atm Machine MGT
I also feel indebted to my friends for the valuable suggestions during the
project work.
UNNATI CHOUREY
Class XII
C O N T E N T S
1. Introduction
2. Theoretical Background
3. Problem Definition & Analysis
4. System Implementation
4.1 The Hardware used:
4.2 The Softwares used:
5. System Design & Development
5.1 Database Design:
5.2 Coding:
6. References
1. Introduction
Python is a widely used general-purpose, high level programming language. It was created by
Guido van Rossum in 1991 and further developed by the Python Software Foundation. It was
designed with an emphasis on code readability, and its syntax allows programmers to express
their concepts in fewer lines of code.
Python is a programming language that lets you work quickly and integrate systems more
efficiently.
There are two major Python versions: Python 2 and Python 3. Both are quite different.
Learning Python gives the programmer a wide variety of career paths to choose from. Python is
an open-source (free) programming language that is used in web programming, data science,
artificial intelligence, and many scientific applications. Learning Python allows the programmer
to focus on solving problems, rather than focusing on syntax. Its relative size and simplified
syntax give it an edge over languages like Java and C++, yet the abundance of libraries gives it
the power needed to accomplish great things.
2. Theoretical Background
To find and retrieve just the data that meets conditions you specify, including data from multiple
tables, create a query. A query can also update or delete multiple records at the same time, and
perform built-in or custom calculations on your data.
♦ The data stored can be sorted or indexed at the user's discretion and direction.
♦ Various reports can be produced from the system. These may be either standardized report
or that may be specifically generated according to specific user definition.
♦ Mathematical functions can be performed and the data stored in the database can be
manipulated with these functions to perform the desired calculations.
♦ To maintain data integrity and database use.
The DBMS interprets and processes users' requests to retrieve information from a database. In most
cases, a query request will have to penetrate several layers of software in the DBMS and operating
system before the physical database can be accessed. The DBMS responds to a query by invoking
the appropriate subprograms, each of which performs its special function to interpret the query, or
to locate the desired data in the database and present it in the desired order.
The hardest part of building a software system is deciding precisely what to build. No other part of
the conceptual work is so difficult as establishing the detailed technical requirement. Defining and
applying good, complete requirements are hard to work, and success in this endeavor has eluded
many of us. Yet, we continue to make progress.
Problem definition describes the What of a system, not How . The quality of a software product is
only as good as the process that creates it. Problem definition is one of the most crucial steps in this
creation process. Without defining a problem, developers do not know what to build, customers do
not know what to expect, and there is no way to validate that the built system satisfies the
requirement.
Problem definition and Analysis is the activity that encompasses learning about the problem to be
solved, understanding the needs of customer and users, trying to find out who the user really is, and
understanding all the constraints on the solution. It includes all activities related to the following:
✔ Creation of a document that describes the external behavior and the association constraints
that will satisfies those needs.
✔ After the analysis of the functioning of a Instant Messenger, the proposed System is
expected to do the following: -
✔ To provide a user friendly, Graphical User Interface (GUI) based integrated and centralized
environment for computerized Instant Messenger.
✔ The proposed system should maintain all the records , and should generate the required
reports and information when required.
✔ To provide efficient and secured Information storage, flow and retrieval system, ensuring
the integrity and validity of records.
✔ To provide graphical and user-friendly interface to interact with a centralized database based
on client-server architecture.
✔ To identify the critical operation procedure and possibilities of simplification using modern
IT tools and practices.
Functions of Proposed System:
-> Validating the Atm card
-> Asking the user for options to perform next task
-> In case withdrawal is selected, we should check the balance accordingly
-> Handing over the amount
-> Printing the receipts
5. System Implementation
SOFTWARE SPECIFICATION:-
Operating System : Windows 7
Platform : Python IDLE 3.7
Database : MySQL SERVER 5.1
Languages : Python
HARDWARE SPECIFICATION:-
1.Table : Userdtls
CODING:
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":
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:
print("===============================================================
=================")
c1.execute(ab)
conn.commit()
print("===============================================================
=================")
print("===============================================================
=================")
c1.execute(sr)
conn.commit()
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:
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:
print("===============================================================
=================")
c1.execute(sr)
conn.commit()
ef="update records set 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()
if amt >m[0]:
print("Your are having less 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:
c1.execute(cb)
c1.fetchall()
data=c1.rowcount
if data==1:
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()
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")
c1.execute(ar)
conn.commit()
else:
print("Wrong password")
print("===============================================================
=================")
else:
if op==3:
print("Exiting")
c1.close()
6. References
In order to work on this project titled STOCK MANAGEMENT, the following books and literature
are refered by me during the various phases of development of the project.
(1) http://www.mysql.org/
(2) http://www.python.org/
Website: https://www.w3resource.com
Other than the above-mentioned books, the suggestions and supervision of my teacher and my class
experience also helped me to develop this software project.