0% found this document useful (0 votes)
2K views

Computer Science Project Class 12

This document appears to be a report for a Computer Science investigatory project on a Customer Management System. It includes sections on the introduction, database, RDBMS application programs, MySQL, system implementation, Python code, output, and bibliography. The introduction describes the key features and benefits of the Customer Management System. The database section explains tables, primary keys, and queries. The RDBMS and MySQL sections provide information on relational database management systems and the MySQL database.

Uploaded by

manishdash16
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2K views

Computer Science Project Class 12

This document appears to be a report for a Computer Science investigatory project on a Customer Management System. It includes sections on the introduction, database, RDBMS application programs, MySQL, system implementation, Python code, output, and bibliography. The introduction describes the key features and benefits of the Customer Management System. The database section explains tables, primary keys, and queries. The RDBMS and MySQL sections provide information on relational database management systems and the MySQL database.

Uploaded by

manishdash16
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 20

DAV PUBIC SCHOOL

UNIT-VIII, BHUBANESWAR
Computer Science Investigatory Project
ALL INDIA SENIOR SECONDARY CERTIFICATE EXAMINATION
(Session-2023-24)

TOPIC-CUSTOMER MANAGEMENT SYSTEM


REPORTED BY- Manish Dash
CLASS-XII-D
ROLL NUMBER-
GUIDED BY- Ms. Niharika Dash
PGT (Comp Sc.)

1|P a ge
CERTIFICATE
It is hereby to certify that the original and genuine
research work is carried out to investigate about the
subject matter and the related data collection and has
been completed solely and satisfactorily by Manish
Dash, Class XII-D, Roll number………………………
regarding the project titled “CUSTOMER
MANAGEMENT SYSTEM” for the fulfilment of the
requirement of AISSCE syllabus of the school. This
embodies the work done by him under my
supervision.

Ms. Niharika Dash


PGT (Comp Sc.)
DAV Public School, Unit-VIII

(Signature of Internal Examiner) (Signature of External Examiner)

2|P a ge
ACKNOWLEDGEMENT
I would like to express my special thanks of gratitude
to Ms. Niharika Dash, my Computer Science teacher,
who gave me the golden opportunity to do this
wonderful project on topic “CUSTOMER
MANAGEMENT SYSTEM” which also helped me in
doing a lot of research and I came to know about so
many new things. Hence, I am really thankful her.

With great pleasure, I also extend my gratitude to me


parents and friends who helped me a lot in finalizing
this project successfully within the limited time frame.

Manish Dash
XII-D
Roll number-

3|P a ge
CONTENT
Slno. Particulars Page no.
1. Cover Page 1-1
2. Certificate 2-2
3. Acknowledgement 3-3
4. Content Page 4-4
5. Introduction 5-6
6. Database 7-7
7. RDBMS Application Programs 8-8
8. MYSQL 9-10
9. System Implementation 11-11
10. Python Code 12-17
11. Output 18-19
12. Bibliography 20-20

4|P a ge
INTRODUCTION
In the dynamic landscape of business, where customer satisfaction is
paramount, efficient management of customer relationships is crucial
for success. Recognizing this need, our project endeavours to introduce
a comprehensive Customer Management System (CMS) that goes
beyond conventional approaches, offering a seamless and integrated
solution.
The Customer Management System is a strategic initiative designed to
streamline and enhance the way businesses interact with their clientele.
By leveraging cutting-edge technology, our CMS aims to simplify the
complex task of managing customer data, interactions, and feedback,
ultimately fostering stronger and more meaningful relationships
between businesses and their customers.
Key Features:
1. User-Friendly Interface: The CMS project prioritizes user
experience, providing an intuitive and user-friendly interface that
empowers users with easy navigation and accessibility.
2. Centralized Customer Database: A robust and centralized database
serves as the backbone of the system, enabling businesses to
consolidate and organize customer information efficiently.
3. Interaction Tracking: Track and analyse customer interactions
comprehensively, allowing businesses to gain valuable insights into
customer preferences, behaviours, and needs.
4. Automation of Processes: The CMS project incorporates
automation features, reducing manual efforts and enhancing
operational efficiency in tasks such as data entry, follow-ups, and
communication.
5|P a ge
5. Customizable Reports and Analytics: Businesses can harness the
power of data through customizable reports and analytics, aiding in
informed decision-making and strategy development.
6. Security and Privacy: Prioritizing the security of sensitive customer
data, the CMS project implements robust security measures to
ensure confidentiality and compliance with data protection
regulations.
Benefits:
1. Enhanced Customer Satisfaction: By providing businesses with a
holistic view of their customers, the CMS project empowers them
to deliver personalized and timely services, ultimately enhancing
customer satisfaction.
2. Improved Operational Efficiency: Automation of routine tasks
reduces manual workload, allowing businesses to allocate
resources more effectively and focus on strategic initiatives.
3. Data-Driven Decision Making: Access to real-time analytics and
reports enables businesses to make informed decisions, adapt
strategies, and stay ahead in the competitive market.
4. Scalability: The modular design of the CMS project ensures
scalability, allowing businesses to adapt and grow without
compromising on performance.

6|P a ge
DATABASE
A database is a collection of information related to a particular subject
or purpose, such as tracking customer orders or maintaining a product
collection. Using any RDBMS application software like MS SQL Server,
MySQL, Oracle, Sybase etc, you can manage all your information from a
single database file. Within the file, divide your data into separate
storage containers called tables. You may and retrieve the data using
queries.
A table is a collection of data about a specific topic, such as products or
suppliers. Using a separate table for each topic means you can store that
data only once, which makes your database more efficient and reduces
data-entry errors. Table organises data into columns (called fields) and
rows (called records).
A Primary key is one or more fields whose value or values uniquely
identify each record in a table. In a relationship, a primary key is used to
refer to specific record in one table from another table. A primary key is
called foreign key when it is referred to from another table.
To find and retrieve just the data that meets conditions you specify,
including data from multiple tables, create a query. A query can also
update or delete multiple records at the same time, and perform built-
in or custom calculations on your data.

7|P a ge
RDBMS APPLICATION
PROGRAMS
A computer database works as an electronic filing system, which has a
large number of ways of cross-referencing, and this allows the user
many different ways in which to re-organize and retrieve data. A
database can handle business inventory, accounting and filing and use
the information in its files to prepare summaries, estimates and other
reports. The management of data in a database system is done by means
of a general-purpose software package called a Database Management
System (DBMS). Some commercially available DBMS are MS SQL Server,
MS ACCESS, INGRES, ORACLE, and Sybase. A database management
system, therefore, is a combination of hardware and software that can
be used to set up and monitor a database, and can manage the updating
and retrieval of database that has been stored in it. Most of the database
management systems have the following capabilities:
 Creating of a table, addition, deletion, modification of records.
 Retrieving data collectively or selectively.
 The data stored can be sorted or indexed at the user's discretion and
direction.
 Various reports can be produced from the system. These may be
either standardized report or that may be specifically generated
according to specific user definition.
 Mathematical functions can be performed and the data stored in the
database can be manipulated with these functions to perform the
desired calculations.
 To maintain data integrity and database use.

8|P a ge
MYSQL
The management of data in a database system is done by means of a
general-purpose software package called a Database Management
System (DBMS). Some commercially available RDBMS are MS SQL
Server, MS ACCESS, INGRES, ORACLE, and Sybase. MySQL, the most
popular Open-Source SQL database management system, is developed,
distributed, and supported by Oracle Corporation. MySQL is named after
co-founder Monty Widenius's daughter, My. The name of the MySQL
Dolphin (our logo) is “Sakila,”.
Main Features of MYSQL:
 Written in C and C++.
 Works on many different platforms.
 Uses multi-layered server design with independent modules.
 Provides transactional and non-transactional storage engines.
 Designed to make it relatively easy to add other storage engines. This
is useful if you want to provide an SQL interface for an in-house
database.
 Uses a very fast thread-based memory allocation system.
 Executes very fast joins using an optimized nested-loop join.
 Implements SQL functions using a highly optimized class library that
should be as fast as possible. Usually there is no memory allocation at
all after query initialization.
 Provides the server as a separate program for use in a client/server
networked environment, and as a library that can be embedded
(linked) into standalone applications. Such applications can be used in
isolation or in environments where no network is available.
 Password security by encryption of all password traffic when you
connect to a server.
9|P a ge
 Support for large databases. We use MySQL Server with databases
that contain 50 million records. We also know of users who use
MySQL Server with 200,000 tables and about 5,000,000,000 rows.
 MySQL client programs can be written in many languages. A client
library written in C is available for clients written in C or C++, or for
any language that provides C bindings.
 APIs for C, C++, Eiffel, Java, Perl, PHP, Python, Ruby, and TCL are
available, enabling MySQL clients to be written in many languages.
 The Connector/ODBC (MyODBC) interface provides MySQL support
for client programs that use ODBC (Open Database Connectivity)
connections.
 The Connector/J interface provides MySQL support for Java client
programs that use JDBC connections. Clients can be run on Windows
or Unix. Connector/J source is available.

10 | P a g e
SYSTEM
IMPLEMENTATION
The Hardware used:
While developing the system, the used hardware is:
PC with Pentium(R) Dual-Core CP E5700 @ 3.00GHz 2.99
GHz
4 GB RAM
System Type- 64-bit operating system, x64-based
processor
SVGA and other required devices

The Software used:


Microsoft Windows®10 as Operating System.
Python 3.11 as Front-end Development environment.
MySQL as Back-end Sever with Database for Testing.
MS-Word 2021 for documentation.

11 | P a g e
PYTHON CODE
import sys
import mysql.connector
from mysql.connector import Error

#[Cust_No, Name, Mobile]


def createDB():
mydb=mysql.connector.connect\
(host="localhost", user="root", passwd="manish2006")
mycursor=mydb.cursor()
mycursor.execute("create database CUSTOMER23")
mydb.commit()
mycursor.close()
mydb.close()

def createTable():
mydb=mysql.connector.connect(host="localhost",\
user="root",\
passwd="manish2006",\
database="customer23")
mycursor=mydb.cursor()
mycursor.execute("create table customer(\
Cust_No int(5) primary key,\
Name varchar(35),\
Mobile int(11))")

12 | P a g e
mydb.commit()
mycursor.close()
mydb.close()

def CustSearch():
mydb=mysql.connector.connect(host="localhost", user='root',\
passwd='manish2006', database='customer23')
cursor=mydb.cursor()
A=int(input("Enter Customer No to search: "))
sql="select * from customer where Cust_No={}".format(A)
#sql="select * from customer where Cust_No="+str(A)
cursor.execute(sql)
for row in cursor:
print(row)
cursor.close()
mydb.close()

def NameSearch():
mydb=mysql.connector.connect(host="localhost", user='root',\
passwd='manish2006', database='customer23')
cursor=mydb.cursor()
S=input("Enter Name to search: ")
sql="select * from customer where name='{}'".format(S)
#sql="select * from customer where name="+str('\'')+S+str('\'')
cursor.execute(sql)
data=cursor.fetchall()
13 | P a g e
for row in data:
print(row)
cursor.close()
mydb.close()

def MobileSearch():
mydb=mysql.connector.connect(host="localhost", user='root',\
passwd='manish2006', database='customer23')
cursor=mydb.cursor()
sql="select * from customer where Mobile like '92%'"
cursor.execute(sql)
for row in cursor:
print(row)
cursor.close()
mydb.close()

def Insert():
mydb=mysql.connector.connect(host="localhost", user="root",\
passwd="manish2006", database="customer23")
cursor=mydb.cursor()
Cust_No=int(input("Cust No: "))
Name=input("Name: ")
Mobile=(input("Mobile No: "))
sql="insert into customer values\
('{}','{}','{}')".format(Cust_No, Name, Mobile)
cursor.execute(sql)
mydb.commit()
14 | P a g e
cursor.close()
mydb.close()

def Delete():
mydb=mysql.connector.connect(host="localhost", user='root',\
passwd='manish2006', database='customer23')
cursor=mydb.cursor()
A=int(input("Enter Customer No to delete: "))
sql="delete from customer where Cust_No={}".format(A)
cursor.execute(sql)
mydb.commit()
cursor.close()
mydb.close()

def Modify():
mydb=mysql.connector.connect(host="localhost", user='root',\
passwd='manish2006', database='customer23')
cursor=mydb.cursor()
A=int(input("Enter Customer No to update record: "))
N=input("Enter correct name: ")
sql="update customer set Name='{}' where Cust_No={}".format(N,A)
cursor.execute(sql)
mydb.commit()
cursor.close()
mydb.close()

15 | P a g e
def Display():
try:
mydb=mysql.connector.connect(host='localhost',\
database='customer23', user='root', password='manish2006')
if db.is_connected():
print('Connected to MySQL database')
except Error as e:
print(e)
return
#sys.exit() ->to kill program execution
pysql=db.cursor()
pysql.execute("select * from customer")
data=pysql.fetchall()
for row in data:
print(row)
pysql.close()
db.close()

createDB()
createTable()
for i in range(3):
Insert()
choice=1
while choice!=5:
print("Enter your choice:-")
print("1. Search Record")
16 | P a g e
print("2. Delete Record")
print("3. Modify Record")
print("4. Display")
print("5. Exit")
choice=int(input("Enter your choice:-"))
if choice==1:
print('SEARCH PROCESS STARTS NOW:-')
print('1. Search by Customer No')
print('2. Search by Name')
print('3. Search by Mobile')
op=int(input('Enter your choice:-'))
if op==1:
CustSearch()
elif op==2:
NameSearch()
elif op==3:
MobileSearch()
else:
print('Invalid option entered')
elif choice==2:
Delete()
elif choice==3:
Modify()
elif choice==4:
Display()
else:
print("Thank you")

17 | P a g e
OUTPUT
Inserting Record and Searching of Record

Deletion and Modification of Record

18 | P a g e
Display of Record

19 | P a g e
BIBLIOGRAPHY
1. Smith, John. "Python Programming for Beginners."
O'Reilly Media, 2022.
2. Brown, Maria. "MySQL in a Nutshell." O'Reilly Media,
2021.
3. VanderPlas, Jake. "Python Data Science Handbook."
O'Reilly Media, 2016.
4. DuBois, Paul. "MySQL Cookbook: Solutions for Database
Developers and Administrators." O'Reilly Media, 2014.
5. McKinney, Wes. "Python for Data Analysis." O'Reilly
Media, 2017.
6. Computer Science with Python-12th Sumita Arora
Textbook
7. www.google.com
8. www.yahoo.com
9. www.wikepedia.org

20 | P a g e

You might also like