0% found this document useful (0 votes)
68 views17 pages

Cs Project For Banking Management Aarav M

This document is a certificate and project report submitted by Aarav Mantripragada for their 12th grade Computer Science project on banking management using Python and SQL. The project involves developing a program to manage bank accounts, allow customers to deposit/withdraw money, and view customer details. The report provides an overview of the project, requirements, program features, source code, outputs, and bibliography. It acknowledges the guidance of their teacher, Mrs. Rohini.S Patil, and permission from their school, New Baldwin International, to use the computer lab.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
68 views17 pages

Cs Project For Banking Management Aarav M

This document is a certificate and project report submitted by Aarav Mantripragada for their 12th grade Computer Science project on banking management using Python and SQL. The project involves developing a program to manage bank accounts, allow customers to deposit/withdraw money, and view customer details. The report provides an overview of the project, requirements, program features, source code, outputs, and bibliography. It acknowledges the guidance of their teacher, Mrs. Rohini.S Patil, and permission from their school, New Baldwin International, to use the computer lab.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 17

NEW BALDWIN INTERNATIONAL

PU AND DEGREE COLLEGE

TOPIC : BANKING MANAGEMENT PROJECT


CBSE ROLL NO. : 2022-XIICBSE-PCMC002
SESSION : 2023-24
Computer Science (Python AND SQL)
CLASS 12th Science
SUBMITTED BY : Aarav Mantripragada
SUBMITTED TO : CBSE,
Under The Supervision Of Mrs.Rohini.S Patil

BANKING
CERTIFICATE
This is to certify that Master
Aarav Mantripragada studying
in New Baldwin
International college of
standard 12th Science(CBSE)
has completed Computer
Science (python and sql)
project
Batch 2023-24
Raghu.C.
(PRINCIPAL)

ACKNOWLEDGEMENT

I am Aarav Mantripragada of class


12th CBSE A roll no. :2022-XIICBSE-PCMC002
would like to express my sincere gratitude
to my computer scienceTeacher
Mrs.Rohini.S Patil ,PGT COMPUTER
SCIENCE, for hervital support, guidance
and encouragement – without which this
project would not have come forth.

I would also like to express my gratitude to


my school NEW BALDWIN
INTERNATIONAL for letting me use the
school laboratory.

INDEX
# Brief overview of project

# Need for computerization

# Software and Hardware requirement


# Advantages of project

# Source code in python

# Output screen

# Bibliography

# Brief overview of project

# Need for computerization

# Software and Hardware requirement

BRIEF OVERVIEW OF PROJECT


This is a project based on bank management. The program helps
us to enter, display or alter the details of different accounts in the
bank.
Moreover and most importantly the program helps us to deposit
money in the account or close the account from the bank.
The program also helps us to know all the details of customers of
the
bank.
It includes various function programs to do the above mentioned
tasks.
Data file handling has been effectively used in the program.
Database is a collection of interrelated data to serve multiple
applications, i.e. database programs create files of information. So
we see that files are worked with most inside the program itself.
DBMS
The software required for management of data is called DBMS. It
has three models
. Relation model: It stores information in form of
rows(cardinality) and
columns(degree).
. Hierarchical model: In this type of model, we have multiple
records
inside a single record.
. network model: In this , the data is represented by collections of
record
and relationship is represented by associations.

CHARACTERISTICS OF DBMS:

. It reduces the redundancy


. Data sharing
. Data standardization
.Reduction of data in inconsistency
TYPES OF FILES BASED ON ACCESS:

. Sequential file
. Serial file
. Random file
. Text file
. Binary file

Need for computerization


The profile of Indian Banking has undergone a metamorphos
is in the post nationalization era. The change is characterized
by radical transformation in its role, scope and extent of
business operations and the industry has grown dramatically
in size as well as complexity of operations. The banks in India
have also emerged as an effective catalyticntage of socio-
economic change.
This massive expansion and diversification of the banking
The system also brought its attendant strains. Housekeeping
and control functions got neglected owing to exponential
increase in business. The customer service tended to
deteriorate and attracted criticism. Bottlenecks developed in
the flow of information compromising control and monitoring
on the one hand and MIS based policy formulation on the
other. This massive growth in network of branches and
volume of business was achieved mostly by enlarging
manpower resources. Then,this industry entered into a phase
with assent on consolidation and qualitative improvement on
its operations by using suitable contemporary technological
tools.

#Software Specification: -
Operating system: Windows 10/8/7
Platform : Python IDLE 3.8
Database : MySQL
Languages : Python
#Hardware specification: -
Processor: Dual core or above
Hard Disk: 40 GB
Ram : 1024MB

Advantages of project

In order to meet competition, avoid obsolescence,


and seize opportunities .A bank must be able to:
. Respond rapidly to new or changing information
needs.
. Maintaining the past data to ensure the satisfaction
of the customer.
. Reduce error
. Provide better protection
. Make work easier
. Reduce manual labor

Source Code

import os
import platform
import mysql.connector

def connect_to_database():
try:
mydb = mysql.connector.connect(
host="127.0.0.1",
user="root",
passwd="LaVoiture123!!",
database="hotel",
charset="utf8"
)
return mydb
except mysql.connector.Error as err:
print("Error connecting to the database:", err)
return None

def register_customer(mycursor):
custname = input('Enter customer number: ')
name = input('Enter name: ')
addr = input('Enter address: ')
jr_date = input('Enter date of journey: ')
source = input('Enter source: ')
destination = input('Enter destination: ')

sql = 'INSERT INTO pdata(custname, name, addr, jr_date, source,


destination) VALUES (%s, %s, %s, %s, %s, %s)'
values = (custname, name, addr, jr_date, source, destination)

try:
mycursor.execute(sql, values)
mycursor.connection.commit()
mydb
print("Customer information successfully added.")
except mysql.connector.Error as err:
print("Error adding customer information:", err)

def calculate_ticket_price():
print('We have the following rooms for you:-')
print('1. type First class---> Rs 6000 PN')
print('2. type Business class---> Rs 4000 PN')
print('3. type Economy class---> Rs 2000 PN')
room_types = {
'1': {'name': 'First class', 'price': 6000},
'2': {'name': 'Business class', 'price': 4000},
'3': {'name': 'Economy class', 'price': 2000}
}

x = input('Enter your choice: ')


n = int(input('Enter No. of Passengers: '))

if x in room_types:
room_type = room_types[x]
ticket_price = room_type['price'] * n
print(f'You have opted {room_type["name"]}.')
print(f'Your ticket charge is: Rs {ticket_price}')

weight = int(input('Enter the weight of extra luggage (in kg): '))


extra_luggage_charge = weight * 100
total_price = ticket_price + extra_luggage_charge
print(f'Extra luggage charge: Rs {extra_luggage_charge}')
print(f'Your Total bill: Rs {total_price}')
return total_price
else:
print('Invalid choice. Please select a valid room type.')
return 0

def display_customer_details(mycursor):
custname = input('Enter the customer number whose details you
want to view: ')
sql = 'SELECT * FROM pdata WHERE custname = %s'
values = (custname,)

mycursor.execute(sql, values)
customer_data = mycursor.fetchone()

if customer_data:
print('Customer Details:')
print(f'Customer No: {customer_data[0]}')
print(f'Name: {customer_data[1]}')
print(f'Address: {customer_data[2]}')
print(f'Date of Journey: {customer_data[3]}')
print(f'Source: {customer_data[4]}')
print(f'Destination: {customer_data[5]}')
else:
print(f'Customer with No {custname} not found.')

def display_all_customers(mycursor):
sql = 'SELECT * FROM pdata'
mycursor.execute(sql)
all_customers = mycursor.fetchall()

print('All Customer Details:')


for customer in all_customers:
print(f'Customer No: {customer[0]}')
print(f'Name: {customer[1]}')
print(f'Address: {customer[2]}')
print(f'Date of Journey: {customer[3]}')
print(f'Source: {customer[4]}')
print(f'Destination: {customer[5]}')
print('---')

def main_menu(mycursor):
while True:
print('Main Menu:')
print('1. Register Customer')
print('2. Calculate Ticket Price')
print('3. Display Customer Details')
print('4. Display All Customers')
print('5. Exit')

choice = input('Enter your choice: ')

if choice == '1':
register_customer(mycursor)
elif choice == '2':
calculate_ticket_price()
elif choice == '3':
display_customer_details(mycursor)
elif choice == '4':
display_all_customers(mycursor)
elif choice == '5':
print('Exiting the program.')
break
else:
print('Invalid choice. Please enter a valid option.')

if __name__ == "__main__":
mydb = connect_to_database()
if mydb:
mycursor = mydb.cursor(buffered=True)
main_menu(mycursor)
mycursor.close()
mydb.close()

CREATE TABLE Customer (


custno INT PRIMARY KEY,
name VARCHAR(255),
addr VARCHAR(255),
jr_date DATE,
source VARCHAR(255),
destination VARCHAR(255)

);

OUTPUT SCREEN
custname custno addr jr_date source destination
Aarav 1234567899 Shobha 2023-10-11 Bangalore Dubai
John 1334256760 Villa 1024 2023-09-21 Dubai USA
Sarvesh 9897967656 Villa 3425 2023-08-22 Abu-Dhabi China

BIBLIOGRAPHY
1. http://www.google.com/
2. http://en.wikipedia.org
3. Computer science with python
by Sumita Arora

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy