0% found this document useful (0 votes)
17 views34 pages

KK Docu Cs

cs project grade 12

Uploaded by

khushgamers9
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views34 pages

KK Docu Cs

cs project grade 12

Uploaded by

khushgamers9
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 34

`

RD INTERNATIONAL SCHOOL, ERODE.

COMPUTER INVESTIGATORY PROJECT

MALL MANAGEMENT SYSTEM

Guided by: Mrs.KAVITHA.L, PGT (Computer Science)

Done by: Khush Mehta.R XII-D.


`

CERTIFICATE
`

CERTIFICATE

This is to certify that the project entitled “MALL MANAGEMENT

SYSTEM”is a record of bonafide work carried out by KHUSH MEHTA.R

of XII-D. In partial fulfillment of the requirements in COMPUTER

SCIENCE prescribed by CBSE for 2024 – 2025 in RD INTERNATIONAL

SCHOOL, GATEPUDUR, ERODE.

DATE PRINCIPAL

INTERNAL EXAMINER EXTERNAL EXAMINER


`

ACKNOWLEDGEMENT
`

ACKNOWLEDGEMENT

We wish to express our sincere thanks to our beloved Founder Chairman

Dr.D.SENTHIL KUMAR, our Chairman Mr.S.RAGHUL, our Principal

Mr.R.SHANKAR and our institution RD International school, Erode for

guiding and providing facilities towards the successful outcome of this project

work.

We wish to express our deep and profound sense of gratitude to our guide

teacher Mrs.KAVITHA.L, PGT (Computer science), for her expert help,

valuable guidance, comments and suggestions.

We express my heartfelt gratitude to my parents for constant

encouragement while carrying out this project.

We also express our sincere gratitude to one and all who directly or

indirectly, have lent their helping hand in this venture.


`

CONTENTS
`

CONTENTS

S.NO TOPIC PAGE NO

1 AIM 1

2 2
INTRODUCTION TO PYTHON

3 INTRODUCTION TO PROJECT 4

4 REQUIREMENTS 5

5 PROJECT ANALYSIS 6

6 CODING 7

7 OUTPUT 16

8 SUGGESTED
IMPROVEMENTS 21

9 BIBLIOGRAPHY 22
`

AIM
`

AIM

The project “MALL SYSTEM MANAGEMENT” is one of the efforts


that had been made to reduce the effort made by employees in a mall that they
input on the job. This situation can be connected to our daily lives. Even though,
the technology is evolved the staffs use to enter all the information in
handwritten bills. Our motive is to make this process easier by applying tech to
it. In other words, to update it.

The software is user-friendly. There will not be any difficulties to the


shopkeepers to handle the data by this software. And that is my main motive, to
present data in an organized manner.

1
`

INTRODUCTION TO PYTHON

Python is a widely used general-purpose, high level programming language.


It was initially designed by Guido van Rossum in 1991 and developed by
Python Software Foundation. It was mainly developed for emphasis on code
readability, and its syntax allows programmers to express concepts in fewer
lines of code. It is used for
 Web development(server-side),
 Software development,
 Mathematics,
 System scripting.

BENEFITS OF PYTHON:

 Python can be used on a server to create web applications.

 Python can be used alongside software to create workflows.

 Python can connect to database systems. It can also read and modify files.

 Python can be used to handle big data and perform complex mathematics.

 Python can be used for rapid prototyping, or for production-ready


software development.

 Python works on different platforms (Windows, Mac, Linux,


Raspberry Pi ,etc).

 Python has a simple syntax similar to the English language.

 Python has syntax that allows developers to write programs with fewer
lines than some other programming languages.

2
`

 Python runs on an interpreter system, meaning that code can be executed


as soon as it is written. This means that prototyping can be very quick.

 Python has syntax that allows developers to write programs with fewer
lines than some other programming languages.

 Python runs on an interpreter system, meaning that code can be executed


as soon as it is written. This means that prototyping can be very quick.

 Python can be treated in a procedural way, an object-orientated way or a


functional way.

 The most recent major version of Python is Python 3, which we shall be


using in this tutorial. However, Python 2, although not being updated
with anything other than security updates, is still quite popular.

 In this tutorial Python will be written in a text editor. It is possible to


write Python in an Integrated Development Environment, such as
Thonny, Pycharm, Netbeans or Eclipse which are particularly useful
when managing larger collections of Python files.

 Python was designed for readability, and has some similarities to the
English language with influence from mathematics.

 Python uses new lines to complete a command, as opposed to other


programming languages which often use semicolons or parentheses.

 Python relies on indentation, using whitespace, to define scope; such as


the scope of loops, functions and classes. Other programming languages
often use curly-brackets for this purpose.

3
`

INTRODUCTION TO THE PROJECT

INTRODUCTION:

This project MALL SYSTEM MANAGEMENT has been developed on Python and
MySQL. The main aim of this project is to manage all the details about
staff,purchase,sales,customer,store,product etc. Plus, we aim to reduce human effort.

OBJECTIVES OF THE PROJECT IS

• To manage the information of manager .


• To manage the information employee.
• To manage the information of workers.
• To manage the information of sales and mangament.
• To manage the information of the bills of the customers.
• To manage the information of stores.
• To manage the information of products.
• To increase efficiency of managing the manager ,employees ,workers, sales
and mangament , customers ,mall and mall services.
• It tracks all the information of workers, employees ,store ,product and the
customers
• To provide the searching facilities based on various factors such as
manager ,employees ,workers, sales and mangament , customers ,store and
product..
• Adding, updating viewing and if needed deleting of the records is improved
which results in proper resource management of mall managing data.

4
`

REQUIREMENTS

HARDWARE REQUIRED:

 Processor :PENTIUM(ANY)

 RAM :512MB+

 Hard disk : SATA 40 GB ORABOVE

 MOTHERBOARD : 1.845 OR 915,995 FOR PENTIUM 0RMSI


K9MM-V VIA K8M800+8237R PLUS

 CD/DVD r/w multi drive combo: (If back uprequired)

 FLOPPY DRIVE 1.44 MB : (If Backuprequired)

 MONITOR 14.1 or 15 -17inch

 Key board and mouse

 Printer : (if print is required – [Hard copy])

SOFTWARE REQUIRED:

 Operating system : WINDOWS 7 ANDABOVE

 Python

5
`

PROJECT ANALYSIS

• The project “MALL SYSTEM MANAGEMENT” has 5 modules


(purchase, sales, staff, store , product)
• I have initially created an interface between Python and MySQL by
installing mysql.connector package to my project interpreter to ease the
accessibility
• I have used various tables to store the user data. The various tables used
to store the user data are:

➢ Database:
▪ mall
➢ Tables:
▪ purchase
▪ sales
▪ staff
▪ store
▪ product

• In the module purchase – add, update ,search ,display details of the


customer.
• In the module sales– add, update ,search ,display details of the owner of
the shop.
• In the module staff – add , update , search , display details of
the staff .
• In the module store –user can add , update , search , display the details of store
in mall.
• In the module product –user can add , update , search , display the details of the
product.

6
`

CODINGS

import mysql.connector as m

con = m.connect(host="localhost", user="root", passwd="root")


cur = con.cursor()
cur.execute("create database if not exists mall")
cur.execute("use mall")
cur.execute("create table if not exists purchase(id varchar(20),name varchar(20),price
varchar(10),quantity varchar(5))")
cur.execute("create table if not exists sales(id varchar(20),name varchar(20),price
varchar(10),quantity varchar(5))")
cur.execute("create table if not exists staff(id varchar(20),name varchar(20),gender
varchar(10),salary int(7))")
cur.execute("create table if not exists products(id varchar(20),name varchar(20),price
varchar(10),sn varchar(20))")
cur.execute("create table if not exists stores(id varchar(20),name varchar(20),pn
varchar(20))")

def add_purchase():
id=int(input("enter the id"))
name = input("enter the name")
price = int(input("enter the price of the product"))
quantity = int(input("enter the quantity of the product"))
cur.execute("insert into purchase values({},'{}',{},{})".format(id, name, price,
quantity))
con.commit()

def update_purchase():
id = int(input("enter the id"))
name = input("enter the name")
price = int(input("enter the price of the product"))
quantity = int(input("enter the quantity of the product"))
cur.execute("insert into purchase values({},'{}',{},{})".format(id, name, price,
quantity))
con.commit()

def search_purchase():
id = int(input("enter the id"))
name = input("enter the name")
price = int(input("enter the price of the product"))
quantity = int(input("enter the quantity of the product"))
cur.execute("insert into purchase values({},'{}',{},{})".format(id, name, price,
quantity))
con.commit()
7
`

def display_purchase():
cur.execute("select * from purchase")
f = cur.fetchall()
print(f)
con.commit()

def add_sales():
id = int(input("enter the id"))
name = input("enter the name")
price = int(input("enter the price of the product"))
quantity = int(input("enter the quantity of the product"))
cur.execute("insert into sales values({},'{}',{},{})".format(id, name, price,
quantity))
con.commit()

def update_sales():
id = int(input("enter the id"))
name = input("enter the name")
price = int(input("enter the price of the product"))
quantity = int(input("enter the quantity of the product"))
cur.execute("insert into sales values({},'{}',{},{})".format(id, name, price,
quantity))
con.commit()

def display_sales():
cur.execute("select * from sales")
f = cur.fetchall()
print(f)
con.commit()

def add_products():
id = int(input("enter the id"))
name = input("enter the name")
price = int(input("enter the price of the product"))
sn=input("enter the store name in which product you want to add")
cur.execute("insert into products values({},'{}',{},'{}')".format(id, name, price, sn))
con.commit()

def update_products():
id = int(input("enter the id"))
name = input("enter the name")
price = int(input("enter the price of the product"))
sn=input("enter the store name in which product you want to add")
cur.execute("insert into products values({},'{}',{},'{}')".format(id, name, price, sn))
con.commit()

8
`

def search_products():
id = int(input("enter the id"))
name = input("enter the name")
price = int(input("enter the price of the product"))
sn=input("enter the store name in which product you want to add")
cur.execute("insert into products values({},'{}',{},'{}')".format(id, name, price, sn))
con.commit()

def display_products():
cur.execute("select * from products")
f = cur.fetchall()
print(f)
con.commit()

def add_stores():
id = int(input("enter the id"))
name = input("enter the name")
pn=input("enter the product which is selled in the store")
cur.execute("insert into stores values({},'{}','{}')".format(id, name, pn))
con.commit()

def update_stores():
id = int(input("enter the id"))
name = input("enter the name")
pn=input("enter the product which is selled in the store")
cur.execute("insert into stores values({},'{}','{}')".format(id, name, pn))
con.commit()

def search_stores():
id = int(input("enter the id"))
name = input("enter the name")
pn=input("enter the product which is selled in the store")
cur.execute("insert into stores values({},'{}','{}')".format(id, name, pn))
con.commit()

def display_stores():
cur.execute("select * from stores")
f = cur.fetchall()
print(f)
con.commit()

print("*" * 50)
print("MALL SYSTEM MANAGEMENT")
print("*" * 50)
print("1.purchase\n2.sales\n3.staff\n4.products\n5.stores\n")
choice1 = int(input("enter your choice”))
9
`

if choice1 == 1:
ch = "y"
while ch == "y":
print("1.add\n2.update\n3.search\n4.display\n")
choice2 = int(input("enter your choice"))
if choice2 == 1:
print("add purchase")
add_purchase()
elif choice2 == 2:
print("update")
update_purchase()
elif choice2 == 3:
print("search")
search_purchase()
elif choice2 == 4:
print("display")
display_purchase()
else:
print("OOPS WRONG OPTION")
ch = input("DO YOU WANT TO CONTINUE")

elif choice1 == 2:
print("sales")
ch = "y"
while ch == "y":
print("1.add\n2.update\n3.search\n4.display\n")
choice2 = int(input("enter your choice"))
if choice2 == 1:
print("add sales")
add_sales()
elif choice2 == 2:
print("update")
update_sales()
elif choice2 == 3:
print("search")
search_sales()
elif choice2 == 4:
print("display")
display_sales()
else:
print("OOPS WRONG OPTION")
ch = input("DO YOU WANT TO CONTINUE")

elif choice1 == 3:
print("staff")
ch = "y"
while ch == "y":
print("1.add\n2.update\n3.search\n4.display\n")
choice2 = int(input("enter your choice"))
10
`

if choice2 == 1:
print("add employee")
add_staff()
elif choice2 == 2:
print("update")
update_staff()
elif choice2 == 3:
print("search")
search_staff()
elif choice2 == 4:
print("display")
display_staff()
else:
print("OOPS WRONG OPTION")
ch = input("DO YOU WANT TO CONTINUE")

elif choice1 == 4:
print("products")
ch = "y"
while ch == "y":
print("1.add\n2.update\n3.search\n4.display\n")
choice2 = int(input("enter your choice"))
if choice2 == 1:
print("add products")
add_products()
elif choice2 == 2:
print("update")
update_products()
elif choice2 == 3:
print("search")
search_products()
elif choice2 == 4:
print("display")
display_products()
else:
print("OOPS WRONG OPTION")
ch = input("DO YOU WANT TO CONTINUE")

elif choice1 == 5:
print("stores")
ch = "y"
while ch == "y":
print("1.add\n2.update\n3.search\n4.display\n")
choice2 = int(input("enter your choice"))
if choice2 == 1:
print("add stores")
add_stores()

11
`

elif choice2 == 2:
print("update")
update_stores()
elif choice2 == 3:
print("search")
search_stores()
elif choice2 == 4:
print("display")
display_stores()
else:
print("OOPS WRONG OPTION")
ch = input("DO YOU WANT TO CONTINUE")

12
`

OUTPUT

13
`

14
`

15
`

16
`

17
`

18
`

19
`

20
`

21
`

22
`

23
`

24
`

SUGGESTED IMPROVEMENT

• This is an offline program, in future, it can be developed further as an

online application too.

• Prices of the product can be updated with ease through a synced

mobile app through further updates.

• Providing facilities to attach the tax added to the price of the products

can also be implemented in the future.

• Notifications can also be sent to the users regarding the purchase and

the money spent to complete the purchases.

• Transaction history can be maintained to be viewed in the future.

• And to make the usage of the software at more ease and inclusion of

Graphic User Interface (GUI) for more elegant and interactive

software experience.

25
`

BIBLIOGRAPHY

BOOKS REFERRED:

Computer science With Python -ClassXII By :SumitaArora

WEB SITES REFERED:

Website : https://www.python.org

26

You might also like