computer science project
computer science project
BHU,VARANASI
A PROJECT REPORT ON
BANKING SYSTEM
• SUBMITTED TO : SUBMITTED BY :
• MRS. SHALINI SINGH SHIVAM GAURAV
BHARDWAJ
P.G.T Computer Science Class: XII "A"
CERTIFICATE
This is to certify that Shivam Gaurav Bhardwaj of class XII A of
Kendriya Vidyalaya BHU,Varanasi has done his project on
Banking Management under my supervision. He has taken
interest and has shown at most sincerity in completion of this
project.
I certify this Project up to my expectation & as per guidelines
issued by CBSE, NEW DELHI.
Internal Examiner External Examiner
Principal
ACKNOWLEDGEMENT
It is with pleasure that I acknowledge my sincere gratitude to our
teacher, Mrs. Shalini Singh who taught and undertook the
responsibility of teaching the subject computer science. I have been
greatly benefited from his classes.
I am especially indebted to our Principal Mr. Ashok Kr. Singh who has
always been a source of encouragement and support and without whose
inspiration this project would not have been a successful I would like to
place on record heartfelt thanks to him. Finally, I would like to express
my sincere appreciation for all the other students for my batch their
friendship & the fine times that we all shared together.
HARDWARE AND SOFTWARE REQUIREMENTS
1.OPERATING SYSTEM:- WINDOWS 10
2.PROCESSSOR:- Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz 1.90 GHz
3.MOTHERBOARD:-1.854 K9MM-V VIAK8M800+8237R PLUS CHIPSET FOR AMD ATHALON
4.RAM:- 512MB+
5.HARD DISK:-SATA 40GB
6.CD/DVD R/W Multi Drive Combo : IF REQUIREDSOFTWARE REQUIREMENTS
INSTALLATION PROCEDURE
Install python and my sql from the web.
Open mysql and create the database bank.
Then run the table.pyfile .
Next run the user_table.py file.
Then the transactions table.pyfile .
Open the main bank file.
Then register your account.
FLOWCHART
SOURCE CODE
TABLE.PY
import mysql.connector as sql
conn=sql.connect(host='localhost',user='root',passwd='manager’ database='bank') If
conn.is_connected():
print('connected succesfully')
cur = conn.cursor() cur.execute('create table customer_details(acct_noint primary key,acct_namevarchar(25) ,phone_nobigint(25) check(phone_no>11),address varchar(25),cr_amt
float )')
MENU.PY
import mysql.connector as sql
conn=sql.connect(host='localhost',user='root',passwd='manager', database='bank')
cur = conn.cursor() conn.autocommit = True print('1.CREATE BANK ACCOUNT')
print('2.TRANSACTION') print('3.CUSTOMER DETAILS')
print(‘4.TRANSACTION DETAILS’)
print('5.DELETE DETAILS')
print('6.QUIT') n=int(input('Enter your
CHOICE=')) if n == 1:
acc_no=int(input('Enter your ACCOUNT NUMBER='))
acc_name=input('Enter your ACCOUNT NAME=')
ph_no=int(input('Enter your PHONE NUMBER='))
dd=(input('Enter your place='))
V_SQLInsert="INSERT INTO customer_details values (" + str (acc_no) + ",' " + acc_name + " ',"+str(ph_no) + ",' " +add + " ',"+ str (cr_amt) + " ) " cur.execute(V_SQLInsert)
conn.commit() if n == 2:
count=cur.rowcount conn.commit() if
count == 0:
1:
x== 2:
cur.fetchone() is None:
else:
cur.execute('select * from customer_details where acct_no='+str(acct_no) )
data=cur.fetchall() for row in data: print('ACCOUNT NO=',acct_no) print('ACCOUNT
NAME=',row[1]) print("PHONE NUMBER=",row[2[) print('ADDRESS=',row[3])
print('cr_amt=',row[4]) if n== 4: acct_no=int(input('Enter your account number=')) print()
cur.execute('select * from customer_details where acct_no='+str(acct_no) )
if cur.fetchone() is None:
print()
print('Invalid Account number')
else:
cur.execute('select * from transactions where acct_no='+str(acct_no) )
data=cur.fetchall() for row in data:
print('ACCOUNT NO=',acct_no) print()
print('DATE=',row[1]) print() print('
WITHDRAWAL AMOUNT=',row[2]) print()
print('AMOUNT ADDED=',row[3])
print()
if n == 5:
print('DELETE YOUR ACCOUNT')
acct_no=int(input('Enter your account number='))
cur.execute('delete from customer_details where acct_no='+str(acct_no) )
print('ACCOUNT DELETED SUCCESFULLY') if n == 6: print("Quit")
MAIN.PY
import mysql.connector as sql
conn=sql.connect(host='localhost',user='root',passwd='manager' database='bank') cur
= conn.cursor()
#cur.execute('create table user_table(username varchar(25) primarykey,passwrdvarchar(25) not null )') print('1.REGISTER')
print('2.LOGIN')
n=int(input('enter your choice=')) if
n== 1:
name=input('Enter a Username=') passwd=int(input('Enter a
4 DIGIT Password='))
V_SQLInsert="INSERT INTOuser_table (passwrd,username) values (" + str (passwd) + ",' " + name + " ') "
cur.execute(V_SQLInsert)
conn.commit() print('USER
created succesfully') if n==2 :
name=input('Enter your Username=') passwd=int(input('Enter
your 4 DIGIT Password='))
V_Sql_Sel="select * from user_table where passwrd='"+str (passwd)+"' and username= ' " +name+ " ' "
cur.execute(V_Sql_Sel) ifcur.fetchone() is None:
print('Invalid username or password') else:
import main
MAIN PAGE
TESTING
Software Testing is an empirical investigation conducted to provide
stakeholders with information about the quality of the product or
service under test , with respect to the context in which it is
intended to operate. Software Testing also provides an objective,
independent view of the software to allow the business to
appreciate and understand the risks at implementation of the
software. Test techniques include, but are not limited to, the
process of executing a program or application with the intent of
finding software bugs. It can also be stated as the process of
validating and verifying that a software
program/application/product meets the business and technical
requirements that guided its design and development, so that it
works as expected and can be implemented with the same
characteristics. Software Testing, depending on the testing method
employed, can be implemented at any time in the development
process, however the most test effort is employed after the
requirements have been defined and coding process has been
completed.
• Software testing methods are
traditionally divided into black box
testing and white box testing. These
two approaches are used to describe
the point of view that a test engineer
takes when designing test cases.
BLACK BOX
TESTING
• Black box testing treats the software as a
"black box," without any knowledge of
internal implementation. Black box
testing methods include: equivalence
partitioning, boundary value analysis, all-
pairs testing, fuzz testing, modelbased
testing, traceability matrix, exploratory
testing and specificationbased testing.
Specification-based testing aims to test the functionality of
software according to the applicable requirements.Thus, the
tester inputs data into, and only sees the output from, the test
object. This level of testing usually requires thorough test cases
to be provided to the tester, who then can simply verify that for
a given input, the output value (or behaviour), either "is" or "is
not" the same as the expected value specified in the test case.
Specification-based testing is necessary, but it is insufficient to
guard against certain risks.
WHITE-BOX
TESTING ⦁ api testing - Testing of the application using Public and Private APIs.
⦁ Code coverage - creating tests to satisfy some criteria of code coverage. For example,
the test designer can create tests to cause all statements in the program to be executed
at least once.
⦁
⦁