You are on page 1of 31

K.S.K.

ACADEMY
ACADEMIC YEAR : 2020 - 2021

PROJECT ON :
BANK MANAGEMENT SYSTEM
AND
MYSQL DATABASE QUERIES

IP PROJECT FILE
SUBMITTED BY: RAUNAK GOLA
SUBMITTED TO: MR. KIRTI PRASAD
CLASS: 12TH R
ADMISSION NO.: 7325
CERTIFICATE
This is to certify that “Raunak
Gola” student of class - 12th R
has successfully completed
their I.P. Project on “Bank
Management System” under
the guidance of “Mr. Kirti
Prasad”.

Teacher’s Signature
ACKNOWLEDGEMENT

I would like to express my special


thanks of gratitude to my I.P. teacher
“Mr. Kirti Prasad” for their able
guidance and support in completing my
Project.
I would also like to extend my gratitude
to the Principal Sir “Mr. Hemant
Kumar” for providing me with all the
facility that was required.

RAUNAK GOLA
INDEX

TOOLS
BANK MANAGEMENT SYSTEM
 PROJECT OBJECTIVE
 PROJECT SCOPE
 PROGRAM SOURCE CODE
 OUTPUT OF THE SOURCE CODE
 PROJECT CONCLUSION
MySQL DATA BASE (QUERIES)
 CREATING AND USING DATABASE

 CREATING AND SHOWING THE FORMAT OF

TABLE

 INSERTING THE VALUE IN TABLE

 SHOWING THE RECORDS OF TABLE

 USING *

 USING WHERE

 USING BETWEEN
 USING AND

 USING LIKE , NOT LIKE

 UPDATING TABLE

 DELETING PARTICULAR ROW

 ADDING NEW COLUMN


TOOLS

 Operating system : Windows 7 (32 - Bit)

 Language used : Python

 Interpreter used : Python IDLE

 Database used : MySQL


BANK MANAGEMENT SYSTEM

PROJECT OBJECTIVE
 To allow only authorized user to access various
function and processed available in the system.
 Locate any A/C wanted by the user.
 Reduced electrical work as most of the work done by
computer.
 Provide greater speed & reduced time consumption.

PROJECT SCOPE
Bank activities are considered to be life blood of
National Economy. Without banking services, trading
and business activities cannot be carried on smoothly.
Banks are the distributors and protectors of liquid
capital which is of vital significance to a developing
country.

Efficient administration of the banking system helps in


the economic growth of the nation. Banking is useful to
trade and commerce.
PROGRAM SOURCE CODE
#Bank Management System Program
# Using Python language
# Created by : Bhavika Rana

import pandas as pd
print("\n************* PROGRAM STARTED *************")

#Bank Databse
data = {"Name" : ["Prakash Kumar", "Hemant Yadav", "Suraj Chauha
n", "Reena Chaudary", "Simriti kumari", "Ankush Singh", "Anya Chop
ra", "Ankur Sharma", "YAshika Bansal", "Robin D'suza"], "Account no
." : [1123405,1235867,4567890,1532450,4457893,7896781,99876
1,2356781,5689321,5406781], "Balance" : [50000,25000,115000,7
5000,80000,100000,90000,70000,60000,85000], "Interest rate" : [5
,6,3,2,7,4,3,5,4,2],"Acct_pin" : [121,131,141,151,161,171,181,191,21
2,232]}

df = pd.DataFrame(data)

print("\n ********* National Bank of India *********")


print("\n \n ************* Bank Database *************")
print("\n", df)

# Some important instructions provided to user.


# It will him/her to run and access details in a easy manner.
print("\n\n")
print("To create a new account : enter 1")
print("To withdraw money from exsiting account : enter 2")
print("To deposit money into existing account : enter 3")
print("To show the details of particular accont holder : enter 4")
print("To close the Existing account : enter 5")
print("To stop program : enter 6")

print("\n \n")
a = int(input("Enter Value : "))

# Using while for runing the program continously after completing a


particular taks.
while a < 6:

if a == 1:
print("\n\n")

#Portion fo code : To create a new account.


print("Creating new account : ")
n = str(input("Enter the name of person : "))
b = int(input("Enter the amount depositing : "))
r = int(input("Enter Interest Rate : "))
a = int(input("Enter account no. of seven digits : "))
p = int(input("Enter pin of three digits : "))
s = int(input("Enter serial no. : "))
x = [n,a,b,r,p]
df.at[s,:] = x
print("\n***** NEW ACCOUNT CREATED *****")
print("\n")
print("********** THANK YOU *********")
print("\nACCOUNT DETAILS ARE :")
print("Accont holder name : ",n)
print("Account no. : ",a)
print("Account Balance : ",b)
print("Interest rate : ",r)
print("\n\n",df)

print("\n")
print("To create a new account : enter 1")
print("To withdraw money from exsiting account : enter 2")
print("To deposit money into existing account : enter 3")
print("To show the details of particular account holder : enter 4")
print("To close the Existing account : enter 5")
print("To Stop program : enter 6\n")
a = int(input("Enter Value : "))

elif a == 2:
print("\n\n")

# Portion of code : To withdraw money from the existing account


.
print("Withdrawing money, Enter account details first : ")
n = str(input("Enter account holder name : "))
a = int(input("Enter account no. : "))
s = int(input("Enter serial no. : "))
p = int(input("Enter pin no. : "))
if p == df.Acct_pin[s] :
w = int(input("Enter amount to withdraw : "))
df.Balance[s] = (df.Balance[s] - w )

print("\n***** MONEY WITHDRAWN *****")


print("\nACCOUNT DETAILS ARE :")
print("Account holder name : ",n)
print("Account no. :",a)
print("Amount withdrawn = ",w)
print("Balance amount is ",df.Balance[s])

print("\n\n")
print(df)
else :
print("\n ********** ACCESS DENIED *********")
print("\n****** ENTERD PIN IS INCOREECT ******")
print("\n*********** TRY AGAIN **********")
print("\n")
p = int(input("Enter pin no. : "))

if p == df.Acct_pin[s] :
w = int(input("Enter amount to withdraw : "))
df.Balance[s] = (df.Balance[s] - w )

print("\n***** MONEY WITHDRAWN *****")


print("\nACCOUNT DETAILS ARE :")
print("Account holder name : ",n)
print("Account no. :",a)
print("Amount withdrawn = ",w)
print("Balance amount is ",df.Balance[s])
print("********* THANK YOU ********")

else :
print("\n ********** ACCESS DENIED *********")
print("\n****** ENTERD PIN IS INCOREECT ******")
print("\n******** YOU CANNOT ACCESS THE ACCOUNT *****
**")

print("\n")
print("To create a new account : enter 1")
print("To withdraw money from exsiting account : enter 2")
print("To deposit money into existing account : enter 3")
print("To show the details of particular account holder : enter 4")
print("To close the Existing account : enter 5")
print("To stop program : enter 6\n")
a = int(input("Enter Value : "))

elif a == 3:
print("\n\n")
#Portion of code : To deposit money in exisiting account.
print("Depositing money, Enter account details first : ")
n = str(input("Enter account holder name : "))
a = int(input("Enter account no. : "))
s = int(input("Enter serial no. : "))
p = int(input("Enter pin no. : "))
if p == df.Acct_pin[s] :
d = int(input("Enter amount to deposit : "))
df.Balance[s] = (df.Balance[s] + d )

print("\n***** MONEY DEPOSITED *****")


print("\nACCOUNT DETAILS ARE :")
print("Account holder name : ",n)
print("Account no. :",a)
print("Amount deposited = ",d)
print("Balance amount is ",df.Balance[s])

print("\n\n")
print(df)
else :
print("\n ********** ACCESS DENIED *********")
print("\n****** ENTERD PIN IS INCOREECT ******")
print("\n*********** TRY AGAIN **********")
print("\n")
p = int(input("Enter pin no. : "))

if p == df.Acct_pin[s] :
d = int(input("Enter amount to deposit : "))
df.Balance[s] = (df.Balance[s] - d )

print("\n***** MONEY DEPOSITRD *****")


print("\nACCOUNT DETAILS ARE :")
print("Account holder name : ",n)
print("Account no. :",a)
print("Amount Deposited = ",d)
print("Balance amount is ",df.Balance[s])
print("********* THANK YOU ********")
else :
print("\n ********** ACCESS DENIED *********")
print("\n****** ENTERD PIN IS INCOREECT ******")
print("\n****** YOU CANNOT ACCESS THE ACCOUNT *****")

print("\n")
print("To create a new account : enter 1")
print("To withdraw money from exsiting account : enter 2")
print("To deposit money into existing account : enter 3")
print("To show the details of particular account holder : enter 4")
print("To close the Existing account : enter 5")
print("To stop program : enter 6\n")
a = int(input("Enter Value : "))

elif a == 4:
print("\n\n")

#Portion of code : To show particular account details.


print("Showing details of particular account holder :\n")
a = int(input("Enter account no. : "))
s = int(input("Enter S. no. : "))
d = df.loc[s,:]
print("\n")
print(d)

print("\n")
print("To create a new account : enter 1")
print("To withdraw money from exsiting account : enter 2")
print("To deposit money into existing account : enter 3")
print("To show the details of particular account holder : enter 4")
print("To close the Existing account : enter 5")
print("To stop program : enter 6\n")
a = int(input("Enter Value : "))

elif a == 5:
print("\n\n")

# Portion of code : To close an existing account.


print("Enter the details of account to close :\n")
a = int(input("Enter account no. : "))
s = int(input("Enter serial no. : "))
p = int(input("Enter pin for security purpose :"))

if p == df.Acct_pin[s] :
print("withdwraing account balance = Rs.",df.Balance[s])
print("\n")
print("***** ACCOUNT CLOSED *****")

print("\n")
print(df.drop([s]))

else :
print("******** CLOSING PROCESS STOPPED *******")
print("******** ENTERD PIN INCORECCT ********")

print("\n")
print("To create a new account : enter 1")
print("To withdraw money from exsiting account : enter 2")
print("To deposit money into existing account : enter 3")
print("To show the details of particular account holder : enter 4")
print("To close the Existing account : enter 5")
print("To stop program : enter 6\n")
a = int(input("Enter Value : "))
print("********** PROGRAM HAS BEEN STOPPED ********")
print("********** THANK YOU **********")

# ********** END OF SOURCE CODE **********

OUTPUT OF THE SOURCE CODE

 When we run the program, this output comes.


 When we enter the value 1 to create a new account,
this output comes.

 We are going to create a new account, after filling the


required information, this output comes.
 When we enter value 2 to withdraw money, this
output comes.
 When we enter the wrong pin, this output comes.

 It give us a second chance to enter the correct pin, if


we don’t enter the correct pin again, this output
comes.
 If we enter the correct pin than this output comes.

 Now we will enter the amount to withdraw.


 When we enter 3 to deposit money, this output
comes. Here also if we enter the wrong pin we will
not be able to deposit money.
 When we enter 4 to show the details of particular
account holder, this output comes.
 When we enter 5 to close an existing account, this
output comes.

 If the entered pin is incorrect than this output


comes.
 If the entered pin is correct than this output comes.
 When we enter 6 to stop, this output comes.

 This Banking system will serve as useful approach to


deposit and withdraw the money for the person.
 It reduces the time taken by the user to save the
money.
 Bank system developed is user friendly.
 It reduces manual work.
MySQL DATABASE
(QUERIES)

1. CREATING DATABASE AND USING IT:

2. CREATING TABLE
3. DISPLAY THE STRUCTURE OF THE TABLE EMP.

4. INSERT RECORDS IN IT.


5. DISPLAY THE DETAILS OF ALL THE RECORD FROM EMP.

6. DISPLAY THE COLUMN ENAME, GRADE.


7. DISPLAY THE RECORDS WHOES GROSS IS LESS THAN 20000.

8. DISPLAY THE RECORDS WHERE GROSS IS MORE THAN 20000


AND SEX IS F(FEMALE).

9. DISPLAY THE RECORD WHOSE ECODE IS 3 OR SEX IS


F(FEMALE).
10. UPDATE THE RECORD BY MAKING THEIR GROSS 19000
WHOSE GRADE IS B2.

11. DELETE THE RECORD WHOSE GROSS IS 17000.

12. NOW SHOW THE WHOLE TABLE.


13. ADD A COLUMN NAME ADDRESS INTO THE TABLE.

14. ADD THE DATA IN THAT COLUMN.

15. SHOW RECORD WHOSE NAME START WITH A.


16. SHOW THE RECORDOF THAT PERSON WHOSE NAME DOES
NO CONTAIN N LETTER.

17. SHOW THE RECORDS WHERE GROSS IS BETWEEN 20000


TO 30000.

You might also like