0% found this document useful (0 votes)
8 views19 pages

Project of CS Class 12

The document is a project report by Surya Pratap from Kendriya Vidyalaya No. II Jaipur for the academic year 2024-25, focusing on ATM management using Python. It includes sections on project objectives, scope, input/output requirements, hardware and software requirements, coding, and references. The project aims to facilitate ATM operations such as account creation, cash withdrawal, and deposit management.

Uploaded by

darkmatter9631
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views19 pages

Project of CS Class 12

The document is a project report by Surya Pratap from Kendriya Vidyalaya No. II Jaipur for the academic year 2024-25, focusing on ATM management using Python. It includes sections on project objectives, scope, input/output requirements, hardware and software requirements, coding, and references. The project aims to facilitate ATM operations such as account creation, cash withdrawal, and deposit management.

Uploaded by

darkmatter9631
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 19

KENDRIYA VIDYALAYA NO.

II JAIPUR

ACADEMIC YEAR: 2024-25

PROJECT NAME:

NAME: Surya pratap


ROLL.NO: 47
CLASS: XII C
SUBJECT: COMPUTER SCIENCE

SUBJECT TEACHER: MRS. PANKAJ MAM


Certificate
This is to certify that surya pratap of class XII C
has successfully completed his project on topic
ATM management as prescribed by Pankaj mam
during the academic year 2024-25 as per the
guidelines given by CBSE

Teacher’s signature
______________________
External’s signature
______________________

Principal's signature
_______________________
ACKNOWLEDGEMENT

I undertook this project work, as the part of my xii-informatics


practices course. I had tried to apply my best of knowledge and
experience, gained during the study and class work experience.
However, developing software system is generally a quite
complex and time consuming process. It requires a systematic
study, insight vision and professional approach during the
design and development. Moreover, the developer always feels
the need, the help and good wishes of the people near you,
who have considerable experience and idea.

I would like to extend my sincere thanks and gratitude to my


teacher MRS. PANKAJ MAM. I am very much thankful to our
Principal MR. P.K TAYLOR SIR for giving valuable time and
moral support to develop this software. I also feel indebted to
my friends for the valuable suggestions during the project
work.

Surya pratap
Class: XII C
TABLE OF CONTENTS

1. INTRODUCTION OF PROJECT

2. OBJECTIVE OF THE PROJECT

3. SCOPE OF THE PROJECT

4. INPUT/OUTPUT REQUIREMENT

5. HARDWARE AND SOFTWARE


REQUIREMENTS

6. DATABASE USED

7. CODING

8. OUTPUT

9. REFERENCES AND BIBLIOGRAPHY


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.

OBJECTIVES OF THE PROJECT

1. Validating the ATM card.


2. Asking the user for options to perform next task.

3. In case withdrawal is selected, we should check the


balance accordingly.

4. Creating account for new users by taking required


information from them.

5. Handing over the amount.

6. Printing the receipts.


SCOPE OF THE PROJECT

This project has a large scope as it has the following features which help
in making it easy to use, understand and modify it:

• Easy To Online Drafting


• A Predefined Program For ATM
• Management of Bank Accounts and Cash Withdrawal
• Have a Practice in Field of Future Coding

This software can be readily used by non-programming personal


avoiding human handled chance of error. This project is used by two
types of users

i. Any Citizen for Cash Withdrawal


ii. Bank Officials

Main Points are: -

• Simplified Management of Account Profiles.


• Account and type Information
• Selection Results
INPUT/OUTPUT REQUIREMENTS

Input requirements

• User Feedback for Account Creation, Withdrawal, Deposit, Balance


Enquiry
• Account No., pin, Name, Initial Balance For account creation
• Account no. and pin
• Amount to be withdrawal
• Amount to be Deposited

Output requirements

• Balance Of User
• Balance of user after transaction

HARDWARE AND SOFTWARE


REQUIREMENTS

HARDWARE REQUIREMENTS:
I.OPERATING SYSTEM: WINDOWS 8 AND ABOVE
II. PROCESSOR: PENTIUM(ANY) OR AMD
ATHALON (3800+-4200+ DUAL CORE)
III. MOTHERBOARD: 1.845 OR 915,995 FOR PENTIUM 0R
MSI
K9MM-V VIA K8M800+8237R
PLUS, CHIPSET FOR AMD ATHALON
IV. RAM: 512MB+
V. Hard disk: SATA 40 GB OR ABOVE
VI. CD/DVD r/w multi drive combo: (If Backup required)

VII. PEN DRIVE 32 GB: (If Backup required)

VIII. MONITOR 14.1 or 15 -17 inch

IX. Key board and mouse

SOFTWARE REQUIREMENTS:

 Windows OS

 Python 3.7. x

DATABASE USED

An important aspect of system design is the design of data storage


structure. To begin with a logical model of data structure is developed
first. A database is a container object which contains tables, queries,
reports and data validation policies enforcement rules or constraints etc.
A logical data often represented as records are kept in different tables
after reducing anomalies and redundancies. The goodness of data base
design lies in the table structure and its relationship.

The data in the project is stored in the CSV type file. It stores tabular
data (data stored in rows and columns as we see in spread sheets or
database) where comma delimits the value. Typically, the default
delimiter is comma (,) but modern implementations of CSV files allow
you to choose a different delimiter character.

Each line in a CSV file is a data record. Each record consists of one or
more fields, separated by chosen delimiter.

CODING

import csv
with open('Atm.csv',mode='a') as csvfile:
mywriter = csv.writer(csvfile,delimiter=',')
print("Welcome to the ATM.")
print("What do you want?")
choice=int(input("1 for account creation ,2 for
Cash Withdrawal ,3 for Cash Deposit ,4 for exit: "))
if choice==1:
username=input("Enter the Username:
")
pin=input("Create your PIN: ")
Account_no =int(input("Enter your 4
digit account no."))
Balance =int(input("Enter the amount
to be deposited: "))

mywriter.writerow([username,Account_no,pin,Balance])
print("Account created successflly")
print("Please Visit Again")
elif choice==2:
with open('Atm.csv',mode='r')as csvfile:

myreader=csv.reader(csvfile,delimiter=',')
u=input("Enter Account no. ")
for row in myreader:
if len(row)!=0:
if(row[1])==u:
pn=input("Enter your pin: ")
if pn==row[2]:
cash=int(input("Enter the
amount to withdraw"))
row[3]=int(row[3])-cash
print("Please collect
your cash: "+str(cash))
ch=input("Do you want to
display the account balance on screen? Yes/no):")
if ch=='yes':
print(row[3])
print("Thankyou for
visiting")
else:
print("Thankyou for
visiting")
else:
print("Wrong Pin")

elif choice==3:
with open('Atm.csv',mode='r')as csvfile:
myreader=csv.reader(csvfile,delimiter=',')
u=input("Enter Account no. ")
for row in myreader:
if len(row)!=0:
if(row[1])==u:
pn=input("Enter your pin: ")
if pn==row[2]:
cash2=int(input("Enter
the amount to Deposit: "))
row[3]=int(row[3])
+cash2
ch2=input("Do you want
to display the account balance on screen? Yes /no):")
if ch2=='yes':
print(row[3])
print("Thankyou for
visiting")
else:
print("Thankyou
for visiting")
else:
print("Wrong Pin")

elif choice==4:
print("Thank you For visiting")
print("Please come again")
Keywords, strings and variables

 Keywords

1. import: This keyword is used to include a module or library in your


Python script. Here, it imports the csv module, which is used for reading
and writing CSV (Comma-Separated Values) files.
2. with: This is a context manager that is used for resource management. It
ensures that resources are properly acquired and released. In this code,
it is used to open the CSV file and automatically close it after the block is
executed.
3. as: This keyword is used in conjunction with with to give a name to the
opened resource (the CSV file in this case). Here, csvfile is the name
given to the file object created by opening 'Atm.csv'.
4. int: This is a built-in function that converts a value into an integer. It's
used here to convert user input from a string to an integer type.
5. input: This function takes input from the user via the console. It returns
the input as a string.
6. if, elif, else: These are conditional statements used to control the flow of
execution based on certain conditions.
o if: Tests a condition and executes a block of code if the condition
is true.
o elif: Stands for "else if" and allows you to check multiple
expressions for truth after the initial if.
o else: Specifies a block of code to be executed if none of the
preceding conditions are true.
7. for: This keyword is used to create a loop that iterates over a sequence
(like a list or a CSV reader). In this case, it iterates over each row in the
CSV file.
8. len: This is a built-in function that returns the length (number of items)
of an object. Here, it's used to check if the current row is not empty.
9. print: This function outputs text or variables to the console. It's used
throughout the code to display messages to the user.

 Strings

1. "Welcome to the ATM.": This string is a welcome message displayed to


the user when they access the ATM program.
2. "What do you want?": This string prompts the user to choose an action
(like account creation or withdrawal).
3. "1 for account creation, 2 for Cash Withdrawal, 3 for Cash Deposit, 4
for exit: ": This string provides the user with options for the actions they
can perform at the ATM.
4. "Enter the Username: ": This string prompts the user to input their
desired username when creating an account.
5. "Create your PIN: ": This string asks the user to create a PIN for their
account.
6. "Enter your 4 digit account no: ": This string prompts the user to enter a
four-digit account number during account creation.
7. "Enter the amount to be deposited: ": This string asks the user to
specify how much money they want to deposit into their account.
8. "Account created successfully": This string confirms to the user that
their account has been created.
9. "Please Visit Again": This string is a friendly closing remark after the
account is created.
10."Enter Account no: ": This string prompts the user to enter their account
number when attempting to withdraw or deposit cash.
11."Enter your pin: ": This string asks the user to enter their PIN for
authentication.
12."Enter the amount to withdraw: ": This string prompts the user to
specify how much cash they want to withdraw.
13."Please collect your cash: ": This string informs the user to take their
cash after a successful withdrawal.
14."Do you want to display the account balance on screen? Yes/no):": This
string asks the user whether they want to see their account balance
after a transaction.
15."Thank you for visiting": This string is displayed to the user as a
courteous farewell message after using the ATM.
16."Wrong Pin": This string is displayed if the user enters an incorrect PIN
when attempting to withdraw or deposit cash.
17."Enter the amount to deposit: ": This string prompts the user to enter
how much they wish to deposit.
18."Please come again": This string is a closing message thanking the user
for their visit to the ATM.

 Variables

1. csvfile: This variable represents the file object created by opening


'Atm.csv'. It is used to read from or write to the CSV file.
2. mywriter: This variable is a CSV writer object that is used to write data
to the CSV file.
3. choice: This variable stores the user's choice (1 for account creation, 2
for withdrawal, etc.) as an integer.
4. username: This variable holds the username input by the user during
account creation.
5. pin: This variable stores the PIN created by the user.
6. Account_no: This variable holds the account number input by the user
during account creation.
7. Balance: This variable stores the initial balance entered by the user
during account creation.
8. u: This variable holds the account number input by the user when
performing withdrawal or deposit actions.
9. row: This variable represents each row of data read from the CSV file as
the program iterates through it.
10.pn: This variable holds the PIN input by the user for authentication when
accessing their account.
11.cash: This variable stores the amount of money the user wants to
withdraw.
12.ch: This variable holds the user's choice regarding whether to display
their account balance after a transaction.
13.cash2: This variable stores the amount of money the user wants to
deposit.
14.ch2: This variable holds the user's choice regarding whether to display
their account balance after a deposit.
OUTPUT

1. For Account Creation

2.For Money Withdrawal


3.For money deposit

4. For No choice

REFERENCES AND BIBLIOGRAPHY


REFRENCE LINKS

• https://en.wikipedia.org/wiki/Real_estate
• https://www.geeksforgeeks.org

BIBLIOGRAPHY

COMPUTER SCIENCE WITH PYTHON (SUMITA ARORA)

You might also like