Project of CS Class 12
Project of CS Class 12
II JAIPUR
PROJECT NAME:
Teacher’s signature
______________________
External’s signature
______________________
Principal's signature
_______________________
ACKNOWLEDGEMENT
Surya pratap
Class: XII C
TABLE OF CONTENTS
1. INTRODUCTION OF PROJECT
4. INPUT/OUTPUT REQUIREMENT
6. DATABASE USED
7. CODING
8. OUTPUT
This project has a large scope as it has the following features which help
in making it easy to use, understand and modify it:
Input requirements
Output requirements
• Balance Of User
• Balance of user after transaction
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)
SOFTWARE REQUIREMENTS:
Windows OS
Python 3.7. x
DATABASE USED
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
Strings
Variables
4. For No choice
• https://en.wikipedia.org/wiki/Real_estate
• https://www.geeksforgeeks.org
BIBLIOGRAPHY