Computer Project Class 12 2020-21
Computer Project Class 12 2020-21
PROJECT FILE
COMPUTER SCIENCE
CLASS 12th
2024-2025
INDEX
SL.NO Title Page No:
1 Acknowledgement 3
2 System Requirement 4
3 System Overview 6
4 Source Code 8
5 Conclusion 27
6 Bibliography 28
3
ACKNOWLEDGEMENT
I would like to express my sincere thanks of gratitude to my teacher
Mrs.Sowmya.K as well as our principal Mrs.Deepamenon who gave
SYSTEM REQUIREMENT
SOFTWARE:
Operating system-Microsoft windows(7,8.1,10)
Python3.7.4, MySQL 5.5
HARDWARE:
Computer processor-Pentium[R]core i3
[email protected]
2.00GB RAM
Keyboard-standard 101/102-keyboard on Microsoft.
Mouse-Microsoft PS/2 Mouse,3D Optical Mouse E1008
Printer-Canon LBP 2900
5
BANK ACCOUNT
MANAGEMENT
6
SYSTEM OVERVIEW
The BANK ACCOUNT MANAGEMENT
project is written in Python. The project file contains a
python script (main.py) and a database file. This is a
simple console based system which is very easy to
understand and use. Talking about the system, it
contains all the basic functions which include login to
account,registeration for new account, payment info,
balance enquiry, withdrawal ,deposit ,kyc,customer
service,delete your account. The bank manager is a
very busy person and does not have the time to sit and
manage the entire activities manually on paper. This
application gives him the power and flexibility to manage
the entire system from a single online system. Bank
account management project provides account detail,
create/delete account and other necessary Bank account
management features. The system allows the manager
to manage accounts. This means he/she can use all
those available features easily without any restriction.
It is too easy to use, he/she can manage Payment
details, Online Banking, Register for new account,
Balance enquiry, customer service, view account
details easily.
In order to run the project, you must have
installed Python on your PC. This is a simple Console
Based system, specially written for the beginners. Bank
Account Management System in Python project with
source code is free to download. Use for education
purpose only
7
PROGRAM
Aim
A software developed to manage the
functionalities of a hotel using python as front end
and Sql as back end.
DATABASE STRUCTURES
8
SOURCE CODE:
import random
import mysql.connector
db=mysql.connector.connect(host='localhost',us
ername='root',password='sys',database='bank')
cursor=db.cursor()
ctr=0
bank=1
while bank==1:
print('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>')
print('Press 1 for Online Banking')
print('Press 2 for Registering a new bank
account')
print('Press 3 for Deleting your account')
9
print('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>')
choice=int(input("Option :- "))
print('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>')
if choice==1:
def welcome_message():
print('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>')
print('WELCOME TO BANK OF INDIA')
print('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>')
def login():
while True:
10
print('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>')
value=(us,p)
query="""select * from
customers where username=%s and pas=%s """
cursor.execute(query,value)
data_login=cursor.fetchall()
if len(data_login)!=0:
globals()['ctr']=1
break
else:
print('LOGIN
UNSUCCSESSFUL')
11
print("USERNAME OR
PASSWORD IS WRONG")
print('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>')
return data_login
def interface():
welcome_message()
b=login()
if globals()['ctr']==1:
i=b[0][0]
name=b[0][2]
print("LOGIN SUCCESSFUL")
print('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>')
c=1
12
while c==1:
print('Press 1 for depositing
money')
print('Press 2 for
withdrawing money')
print('Press 3 for doing kyc')
print('Press 4 for checking
balance')
print('Press 5 for logging out')
print('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>')
ch=int(input("Enter your
option :- "))
if ch==1:
money_deposit=int(input('Amount to be
deposited :- '))
13
print('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>')
cursor.execute('update
customers set balance=balance+%s where idea=
%s',(money_deposit,i))
db.commit()
q='select balance from
customers where idea=%s and username=%s'
cursor.execute(q,
(i,name))
a=cursor.fetchall()
a=a[0]
for x in a:
print("Updated
Balance :- ",x)
print('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>')
elif ch==2:
14
money_withdrawn=int(input('Amount to be
withdrawn :- '))
print('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>')
cursor.execute('update
customers set balance=balance-%s where idea=
%s',(money_withdrawn,i))
db.commit()
q='select balance from
customers where idea=%s and username=%s'
cursor.execute(q,
(i,name))
a=cursor.fetchall()
a=a[0]
for x in a:
print("Updated
Balance :- ",x)
15
print('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>')
elif ch==3:
q='select kyc from
customers where idea=%s and username=%s'
cursor.execute(q,
(i,name))
a=cursor.fetchall()
a=a[0]
for x in a:
condition=x
if condition=='false':
print('For KYC you
need to provide details from one of these
government id')
print('Press 1 for
Aadhar Card')
print('Press 2 for
Voter Id Card')
16
print('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>')
cho=int(input("Enter
your choice :- "))
print('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>')
if cho==1:
print("KYC
Done")
elif cho==2:
print("KYC
Done")
elif ch==4:
print('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>')
elif ch==4:
q='select balance from
customers where idea=%s and username=%s'
cursor.execute(q,
(i,name))
a=cursor.fetchall()
a=a[0]
for x in a:
print("Balance :- ",x)
print('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>')
elif ch==5:
c=0
else:
print("Wrong Option ")
20
print('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>')
interface()
elif choice==2:
print('Fill these details to register your
account ')
idea=random.randint(6,100)
name=input("Enter your name :- ")
username=input('Enter your username :-
')
pas=int(input('Enter your password :- '))
balance=float(input('Enter your
balance :- '))
age=int(input('Enter your age :- '))
gender=input('Enter your gender (M/F) :-
')
21
print('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>')
kyc='false'
query="insert into customers
values({},'{}','{}',{},{},
{},'{}','{}')".format(idea,name,username,pas,bala
nce,age,gender,kyc)
cursor.execute(query)
db.commit()
elif choice==3:
us=input("Enter your username :- ")
p=int(input("Enter your password :-"))
print('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>')
value=(us,p)
query="select * from customers where
username=%s and pas=%s "
cursor.execute(query,value)
22
data_login=cursor.fetchall()
cursor.execute('delete from customers
where idea=%s and username=%s',(data_login[0]
[0],data_login[0][2]))
db.commit()
elif choice==4:
print('help')
print('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>')
elif choice==5:
bank=0
else:
print('Wrong Option')
print('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>')
23
OUTPUT:
24
25
26
27
CONCLUSION
This project helps us to manage the details of the customers bank
accounts and helps customers access their account through internet.
It can keep track of details thousands of Bank Account management
details and user information safely .
In this mini project, there he/she will be able to use all those
available functions without problems, without any restriction. It is
too easy to use.
BIBLIOGRAPHY
28