Computer Project
Computer Project
PROJECT REPORT
SUBJECT: COMPUTER SCIENCE
STUDENT NAME:
CLASS: XII
CERTIFICATE
GEETHANJALI VIDYALAYA
This is to certify that [STUDENT NAME] of class [CLASS]
has successfully completed the [SUBJECT] project on the topic
[PROJECT NAME] under the guidance of Mrs. SEENA K V, PGT
COMPUTER SCIENCE during the academic year 2023-2024.
External Examiner
ACKNOWLEDGEMENT
2.2 Hardware
1. Computer system
2. Mouse
3. Keyboard
3. Existing system and proposed
system
The existing system is manual system.
1. The manual system is prone to error.
2. This system involves a lot of manual entries
3. The usage of papers and records in the process
leads to less efficiency and less productivity.
4. Increase lots of mistakes while writing on paper
5. The time delay between the user and the customer
is reduced.
For this reason, a new system in invented.
5. Source Code
5.1 External Files (Before Execution)
The files used in the program to demonstrate its
functions are given below.
101.csv 102.csv
101,Shreyas,1111,1098374 102,Kaushikh,2222,9837983
5.2 Code
import csv #importing csv module
num=open("Acc. No.csv","r") #retreive Acc no
numcsv=csv.reader(num) #using csv module
for i in numcsv:
AccNums=i #creates list with all Acc. No.
num.close() #close file opened in line #2
AccData=[] #empty list to hold Acc details later
ErrorCount=2 #acceptable error
def RetrieveNo(): #selecting Acc No FROM USER
global AccNo
print("*************************")
AccNo=str(input("Enter Account Number: "))
if AccNo in AccNums:
RetrieveData()
else:
print("*************************")
print("ACC. NUMBER DOES NOT EXIST")
print("PLEASE TRY AGAIN")
RetrieveNo()
def RetrieveData(): #PUTTING ALL ACC DATA INTO
BUFFER LIST TO PERFORM OPERATIONS FOR SPECIFIC ACC.
NO. IN LIST
global AccData
csv_data=open(str(AccNo)+".csv","r")
csvdata=csv.reader(csv_data)
for i in csvdata: data=i
for i in range(4): #FOR SELECTING INTEGER TYPE
FOR INTEGERS AND STRINGS
if i==1:
AccData.append(data[1])
else:
AccData.append(int(data[i]))
Verify()
def Verify(): #PIN VERIFICATION ONLY 2 ERRORS
ALLOWED
global ErrorCount
pin=int(input("Enter your Pin: "))
if pin==AccData[2]: #CHECKS IF PIN IS CORRECT
Errorcount=2
Choice()
else: # IF INCORRECT PIN, TWO CHANCES TO CORRECT
IT, THEN GOODBYE
while ErrorCount>0:
print("*************************")
print("INCORRECT PIN")
print("YOU HAVE "+str(ErrorCount)+"
ATTEMPTS LEFT")
print("*************************")
ErrorCount+=(-1)
Verify()
else:
print("NO ATTEMPTS LEFT")
print("GOODBYE")
exit() #EXIT IF PIN FAILED TWICE
6.2 Outputs
1. Checking account balance
2. Cash withdrawal
7. Bibliography
1. Python.org
2. Code Academy
3. TutorialsPoint.com
4. PythonChallenge.com
5. Google’s Python classes
6. LearnPython.org