Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
418 views27 pages

Mall Managment System Shashank

Uploaded by

shshasnk5557
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)
418 views27 pages

Mall Managment System Shashank

Uploaded by

shshasnk5557
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/ 27

Army Public School

SP Marg, Lucknow
2021-2022

INFORMATICS
PRACTICES PROJECT
“MALL MANAGEMENT
SYSTEM”

Student Name: Shashank Singh


XII STREAM
Board Roll no: 23682799
Acknowledgements

I wish to express my thanks and


immense gratitude to my project guide
and supervisor Dr. P.S.Dubey whose
kind advices this project has been
prepared.
His able guidance, valuable suggestions
at various stages of the project has
benefited in the completion of the same.
I also express my deep sense of
gratitude to
Our Principal for providing all facilities
for the project work.

Shashank Singh

(XII -D)
Certificate

This is to certify that Shashank Singh


of class XII has completed this project
titled “ACCOUNTING RATIOS ”under
my supervision. I certify that this
project is up to my expectation and as
per the guidelines issued by CBSE,
and may be considered as part of the
practical exam conducted by CBSE.

__________
__________
Internal Examiner
Principal
Army Public School Army Public
School
S P Marg, Lko S P Marg,
Lko

___________________
External Examiner
PREFACE

In the field of Computer Science the term PROJECT refers to a


Computerization Work that is completely performed by using a
computer. Today when every field is going to be computerized
means that all task of any field now a days done by using
computer and their appropriate computer programs, then to do
every field’s different-different works, today different programs or
software’s are available in the form of Project.

Learning Python in schools is a part of our syllabus, and according


to the syllabus worked out by the CBSE, to which my school is
affiliated, I enjoyed doing project work for the session 2021-22. I
learned a lot, especially learning by doing was a great experience.

The report is a summary of what I observed and learnt in school.


My humble thanks are going to all the concerned related to my
project. I also feel that it is the right time to thank my teacher,
who guided me during my project. I also feel that it is the right
time to thank my parents, friends and my project partners for their
constant assistance, co-operation extended by them time to time.
Table of Content

Sr. Topic Page


No. No.
1 Abstract
2 Project Aim and Objectives
3 Background of Project
4 Development Environment
5 Software
6 Hardware
7 Data Flow Diagrams
8 Program Coding
9 Table Design
10 System Implementation
11 References
ABSTRACT

Today’s world is the world of Science and Technology. It is the


today’s requirement in every field for quick movement. My Project
Mall Management System is just been a little contribution to this
developing world of science and technology. My project is basically
about the complete automation of Mall System. The project is
mentioned by following references from which we get more
information about the whole items and members details very
easily and in no time.

The knowledge of Python is not completed until the project work


has been completed successfully. Keeping this in mind I had taken
up this project to ease the tedious work of mall managers. This
project can be very helpful in the coming times when more and
more machines will be employed to do automated tasks.

The project starts from User Page where the user is asked about if
he is the admin or the customer. If the user enters as admin he is
asked the username and the password. Once they enter the
correct information they can avail the admin options. If the user
enters as customer they can avail various customer options.
Project Aim and Objectives

The project aims and objectives that will be achieved after


completion of the system is as follows:

To eliminate the paper-work in malls

To record every transaction in computerized system so that the


problem such as record file missing won’t happen.

To design a user friendly graphical user interface which suits the
users.

To complete the system according to project schedule

To produce technical report that documents the phases, tasks


and deliverables in the project

Future objective is to add Bar Code, SMS technologies into the


system.
Background of the Project
Mall management system is an application refer to other library system and
it is suitable to use by any Mall throughout the world. It is used by mall
managers and mall admin to manage the malls using a computerized
system. The system was developed and designed to help the managers
record every item transaction to that the problem such as file missing or
record missing will not happened again.

Sellable and member maintenance module also included in Mall


Management System. User can register or edit the member or Sellable in
the system. With this computerized maintenance, mall will not lost the
sellable record or member record which always happened when no
computerized system bring used.
In addition, report module is also included in Mall Management System. If
user’s position is Admin, the user is able to view different kind of report.
First type of report are issued and return report, user can check the issued,
return transaction which happen on particular day. Moreover, activity log
report also provided by system so that admin can check what process has
been carried out such as register new item, edit member information as well
as login, logout information.

All these modules are able to help manager to manage the mall more
conveniently and efficienctly compare to those malls without computerized
system.
Development Environment
Software:

1) Operating System (Windows 8 or later) : Windows 7 is selected


as my operating system because of additional file system, improved
performance on multi-core processors, improved boot performances,
security features and better GUI.

2) Database (MySQL): MySQL is selected as database, main reason is


quite obvious it is in our syllabus. MySQL is free and open source
relational database management system.

3) Programming Language (Python): The reason of selecting


Python is same as with MySQL. Python is also free and open source
programming language.

Hardware

1) Processor: Intel i3 or AMD Ryzen processor for better performance


2) RAM : Minimum 2 GB required
3) Screen Resolution: Monitor with screen resolution minimum
1024x768
4) Hard Disk : Minimum 2 GB of space is required for database
Data Flow Diagram
(Flow Chart)
Home Page

Admin Customer Back

Ends the
Prepares Item code
Asks
bucket
Username

&
Password
Prepares Bill

Shows available
False
items

True
Shows sales graph
Asks again
for 5 times
Shows
various
admin
options

Python coding
import mysql.connector
from tabulate import tabulate
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
print("****************************************************************************")
print("* *")
print("* Welcome to Mall Management System *")
print("* *")
print("****************************************************************************")
#creating database

mydb=mysql.connector.connect(host="localhost",user="root",passwd="root")
mycursor=mydb.cursor()
mycursor.execute("create database if not exists pysales_inventory")
mycursor.execute("use pysales_inventory")
#creating required tables
mycursor.execute("create table if not exists sellables(pcode varchar(25) primary
key,pname varchar(25) not null,quantity int not null,price int not null)")
mycursor.execute('select * from sellables')

x=0
for i in mycursor:
pcode,pname,quantity,price=i
x=1
if x==0:
mycursor.execute('insert into sellables values(1,"Movie Ticket",10000,200),
(2,"Clothes",5000,500),(3,"Electonics",20000,40000)')
x=1

if x==0:
pass

mycursor.execute("create table if not exists cv(cvals int)")


mycursor.execute("create table if not exists purchase(odate date not null,phone_no
varchar(25) not null,pcode varchar(25) not null,amount int not null,quantity int)")
mycursor.execute("create table if not exists login(username varchar(25) not
null,password varchar(25) not null)")
mycursor.execute("select * from login")#==>Empty

j=0
for i in mycursor:
admin,paswrd=i
j=1

if(j==0):
mycursor.execute("insert into login values('Aditya','root')")#=>1st time
if(j==1):
pass

condition="y"
total=0
ptotal=0
qtotal=0
while(condition=="y" or condition=="Y"):
print("________________________________")
print("1.Admin")
print("2.Customer")
print("3.Exit")
print("________________________________")
ch=int(input("Enter the choice: "))
total=0
ptotal=0
qtotal=0
#PROCEDURE FOR Buying
if(ch==2):
conditioni='y'
while(conditioni=='y' or conditioni=='Y'):
print("________________________________")
print("1. Item Bucket")
print("2. Payment")
print("3. View Available Items")
print("4. See sales graph")
print("5. Go Back")
print("________________________________")

ch9=input("Enter your choice: ")


if(ch9=='1'):
print("All information prompted are mandatory to be filled")
x1=0
cn2='y'
while(cn2=='y' or cn2=='Y'):
x1=x1+1

for i in range(1,100):
if x1==1:
pno=str(input("Enter the customer-phoneno: "))
if len(pno)!=10:
continue
else:
break
else:
break
print()
pcode=str(input("Enter purchased Item code: "))
pquantity=int(input("Enter the purchased item quantity: "))

mycursor.execute("select * from sellables where


pcode='{}'".format(pcode))

for i in mycursor:

pcode,pname,quantity,price=i
print(f"Name of the product: ",pname)
print(f"price of the product: ",price)

amount=int(price)*int(pquantity)

print('Amount: ',amount)
netquan=int(quantity)-int(pquantity)
mycursor.execute("insert into purchase values(curdate(),'{}','{}',{},
{})".format(pno,pcode,amount,pquantity))
mycursor.execute("update sellables set quantity={} where
pcode='{}'".format(netquan,pcode))
mycursor.execute("insert into cv values({})".format(pquantity))
mydb.commit()

print("Record inserted successfully")


cn2=input("Do You want to continue Buying?(y/n) ")
cvfd={}

elif(ch9=='2'):

print("
________________________________________________________________________")
print(f"| |")
print(f"| \t\t\tBILL To Be Paid\t\t\t |")
print(f"|
______________________________________________________________________|")
print(f"| |")
print(f"| |")
xa=mycursor.execute("select amount from purchase")
print(f"|\t\t Bill to be paid {xa} |")
xpq=mycursor.execute("select quantity from purchase")
print(f"|\t\t No of items ordered is {xpq} |")
print(f"| |")
print(f"| |")
print(f"|Thank You For Using Bakery Management System... |")

print("_________________________________________________________________________")
elif(ch9=='3'):
mycursor.execute("select * from sellables")
print("\n")
table=[]
headers=["ICODE","INAME","QUANTITY","PRICE"]
print("_______________")
for i in mycursor:
table.append(i)
print(tabulate(table, headers, tablefmt="fancy_grid"))
print("\n")
elif(ch9=='4'):
od=[]
q=[]
mycursor.execute("select odate,sum(quantity) from purchase group by odate")
for i in mycursor:
od1,q1=i
od.append(od1)
q.append(q1)
plt.plot(od,q)
plt.title("Sales Chart")
plt.xlabel("Order Date")
plt.ylabel("Quantity Ordered")
plt.show()
else:
break

#PROCEDURE FOR Editing Stock


elif(ch==1):
print("Admin")
x=0
for i in range(0,6):
x=x+1
if x<6:
pswrd=str(input("Enter the password "))
mycursor.execute("select * from login")
for i in mycursor:
user,password=i
if (pswrd==password):
ech='y'
while(ech=='y' or ech=='Y'):

print("________________________________")
print("1.Add New Item")
print("2.updating price")
print("3.update quantity")
print("4.Deleting Item")
print("5.Display All Items")
print("6.To change the password")
print("7.Sales Report")
print("8.Logout")
print("________________________________")
ech2=int(input("Enter the choice: "))
if(ech2==1):
pcode=str(input("Enter the product code: "))
pname=str(input("Enter the product name: "))
pq=int(input("Enter the product quantity: "))
pp=int(input("Enter the product price: "))
mycursor.execute("insert into stock values('{}','{}',{},
{})".format(pcode,pname,pq,pp))
mydb.commit()
print("record inserted successfully")
ech=str(input("Do you want to continue editing stock!!! Press y/n "))
elif(ech2==2):
pcode=str(input("Enter the product code: "))
pp=int(input("Enter the new product price: "))
mycursor.execute("update stock set price={} where
pcode='{}'".format(pp,pcode))
mydb.commit()
print("record updated successfully")
ech=str(input("Do you want to continue editing stock!!! Press y/n "))
elif(ech2==3):
pcode=str(input("Enter the product code: "))
pq=int(input("Enter the updated quantity: "))
mycursor.execute("update stock set quantity={} where
pcode='{}'".format(pq,pcode))
mydb.commit()
print("record updated successfully")
ech=str(input("Do you want to continue editing stock!!! Press y/n "))
elif(ech2==4):
pcode=str(input("Enter the product code: "))
mycursor.execute("delete from stock where
pcode='{}'".format(pcode))
mydb.commit()
print("record Deleted successfully")
ech=str(input("Do you want to continue editing stock!!! Press y/n "))
elif(ech2==5):
mycursor.execute("select * from Stock")
j=1
#print("| Sno. | PCode | Pname | PQuantity | Pprice |")
headers=["SR_No","PCode","PName","Quantity","Price"]
table=[]
for i in mycursor:
a,b,c,d=i
temp=[j,a,b,c,d]
table.append(temp)
j+=1
#print(f"| {j} | {code} | {name} | {quantity} | {price} |")
print(tabulate(table, headers, tablefmt="fancy_grid"))

elif(ech2==6):
oldpassword=str(input("Enter old Password: "))
newpassword=str(input("Enter new Password"))
mycursor.execute("update login set password='{}' where
password='{}'".format(newpassword,oldpassword))
mydb.commit()
print("Password Changed successfully")
ech=str(input("Do you want to continue editing stock!!! Press y/n "))
elif(ech2==7):
ech3='y'
while(ech3=='y' or ech3=='Y'):
print("________________________________")
print("1.Daily Sales Report")
print("2.Weekly Sales Report")
print("3.Monthly quantity")
print("4.Annual Report")
print("5.Back Menu")
print("________________________________")
ech4=int(input("Enter the choice: "))
if(ech4==1):
df= pd.read_sql("select sum(amount) as amount,odate from
purchase group by odate;",mydb)
headers=df.columns
tables=df.values
print(tabulate(tables,headers,tablefmt="fancy_grid"))
plt.plot(df['odate'],df['amount'],marker='d', color='red')
plt.xlabel('Order_Date')
plt.ylabel('Amount')
plt.show()
ech3=str(input("Do you want to continue!!! Press y/n "))
elif(ech4==2):
#df= pd.read_sql("select * from
purchase;",mydb,index_col='odate',parse_dates=['odate'])
df2=pd.read_sql("select sum(amount) as
amount,month(odate),left(monthname(odate),3) as monthName, day(odate) as date
from purchase group by week(odate);",mydb,index_col=None)
print(df2)
#df1=df.amount.resample('W').sum()

lab=['Jan','Feb','Mar','Apr','May','Jun','July','Aug','Sep','Oct','Nov','Dec']
L=[]
for i in df2['monthName']:
if i in lab:
if i not in L:
L.append(i)
print(L)
y=np.arange(len(L))
plt.barh(y-0.3,df2['amount']
[0],color='red',label='week1',height=0.2)
plt.barh(y-0.1,df2['amount']
[1],color='yellow',label='week2',height=0.2)
plt.barh(y,df2['amount']
[2],color='green',label='week3',height=0.2)
plt.barh(y+0.1,df2['amount']
[3],color='blue',label='week4',height=0.2)
plt.barh(y+0.3,df2['amount'][4],color='purple',label='extra
days',height=0.2)
plt.yticks(y,L)
plt.legend()
plt.show()
ech3=str(input("Do you want to continue!!! Press y/n "))
elif(ech4==3):
df= pd.read_sql("select sum(amount) as
amount,month(odate),left(monthname(odate),3) as monthName from purchase group by
month(odate);",mydb)
print(df)
headers=df.columns
tables=df.values
print(tabulate(tables,headers,tablefmt="fancy_grid"))

lab=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec']
L=[]
for i in df['monthName']:
if i in lab:
L.append(i)
y=np.arange(len(L))
plt.barh(y,df['amount'], color='Purple',align='center')
plt.title('Month-Wise Report')
plt.ylabel('Month')
plt.yticks(y,L)
plt.xlabel('Amount')
#plt.legend(['Week1','Week2','Week3','Week4'])
plt.show()
ech3=str(input("Do you want to continue!!! Press y/n "))
elif(ech4==4):
df= pd.read_sql("select sum(amount) as amount,year(odate)
as year from purchase group by year(odate);",mydb)
print(df)
headers=df.columns
tables=df.values
print(tabulate(tables,headers,tablefmt="fancy_grid"))
plt.plot(df['year'],df['amount'])
plt.title('Annual Report')
plt.xlabel('Year')
plt.ylabel('Amount')
#plt.legend(['Week1','Week2','Week3','Week4'])
plt.show()
ech3=str(input("Do you want to continue!!! Press y/n "))
elif(ech4==5):
break
else:
break
elif(ech2==8):
break
break
else:
break
if x==6:
print("maxim limit crossed.")
else:
break

Screenshots

Upon entering 1-
On entering password(root)-

Upon entering as customer-


Tables created in mysql-
References/Bibliography

1. Books
 INFORMATICS &
PRACTICES By PREETI
ARORA

2. Websites
 WWW.cbse.nic.in
 www.coursera.com
 www.tutorialpoint.com

You might also like