DEMO of Project by Vik
DEMO of Project by Vik
PROJECT REPORT ON
FASHION STORE
For
AISSCE 2024-25 Examination
[As a part of the COMPUTER SCIENCE Course
(083)]
SUBMITTED BY:
BOARD ROLL NO : 22664236
CLASS : XII - A
Certificate
Name : MUSKAN KUMARI
Roll No : 22664236
Date: ………………………….
Vikash Kumar
Teacher In-charge
……………………….. ……………………….
MUSKAN KUMARI 2
DAV ALkusa December 30, 1899
ACKNOWLEDGEMENT
MUSKAN KUMARI
Class : 12th ‘A’
MUSKAN KUMARI 3
DAV ALkusa December 30, 1899
TABLE OF CONTENTS
Introduction
OBJECTIVES
SYSTEM DEVELOPMENT LIFE CYCLE
Software testing
HARDWARE & SOFTWARE REQUIREMENTS
Theoretical Background
Modules and their purpose
System Design & Development
Database Design:
SOURCE CODE
Requirements
Bibliography
MUSKAN KUMARI 4
DAV ALkusa December 30, 1899
Fashion Store
INTRODUCTION
The Fashion store management software packages are
here to drive more revenues for store owners. These
software programs can help you manage simple
functions in the store like loyalty program, billing,
inventory management, and many more such operations
to make your store service as flawless and superior for
your customers as possible. The Fashion store
database us a locally designed online database for a
fashion store where the owner can view product list with
its detail and about the store. This database makes it
very easy for owner to search for any product the store.
How Does a Fashion Designer Works with Clothing
Design Software?
Technology has expanded its horizon to every industry, and fashion
designing is no different. Fashion designing tools enable creative
individuals to set up their businesses and easily move to create
garments, shoes, and other accessories for consumers.
Fashion design software covers all facets of design like 2D and 3D
sketching, illustrations and patternmaking to produce a design
blueprint. It further helps designers convey how a functional yet
aesthetically pleasing design would look in real life.
MUSKAN KUMARI 5
DAV ALkusa December 30, 1899
Abstract:.
The project contains following modules:-
1. Product Management: This module is used to add,
update and delete the products. Product management
modules enable us to maintain a sophisticated list of
products. Managing products is akin to managing a small
business within a bigger business.
1. All Details
2. Product Name
3. Product Brand
4. Product For
5. Product Season
6. Product ID
MUSKAN KUMARI 6
DAV ALkusa December 30, 1899
software.
problems.
software development.
MUSKAN KUMARI 7
DAV ALkusa December 30, 1899
TESTING METHODS
Software testing methods are traditionally divided into black box testing
and white box testing.
BLACK BOX TESTING
Black box testing treats the software as a "black box," without any
knowledge of internal implementation.
WHITE BOX TESTING
White box testing, by contrast to black box testing, is when the tester
has access to the internal data structures and algorithms (and the code that
implement these)
MUSKAN KUMARI 8
DAV ALkusa December 30, 1899
HARDWARE SPECIFICATION:-
2) RAM : 512MB+
5) Compact Drive
SOFTWARE SPECIFICATION:-
MUSKAN KUMARI 9
DAV ALkusa December 30, 1899
Theoretical Background
Python is a general-purpose interpreted, interactive, object-oriented, and high-level
programming language. It was created by Guido van Rossum during 1985- 1990.
Like Perl, Python source code is also available under the GNU General Public
License (GPL). This tutorial gives enough understanding on Python
programming language.
Characteristics of Python
Following are important characteristics of Python Programming −
It supports functional and structured programming methods as well as OOP.
It can be used as a scripting language or can be compiled to byte-code for
building large applications.
It provides very high-level dynamic data types and supports dynamic type
checking.
It supports automatic garbage collection.
It can be easily integrated with C, C++, COM, ActiveX, CORBA, and Java.
1
MUSKAN KUMARI
0
DAV ALkusa December 30, 1899
What is Database?
Introduction and Concepts:
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.
The DBMS interprets and processes users' requests to retrieve information from a database. In most
cases, a query request will have to penetrate several layers of software in the DBMS and operating
system before the physical database can be accessed. The DBMS responds to a query by invoking the
appropriate subprograms, each of which performs its special function to interpret the query, or to
locate the desired data in the database and present it in the desired order.
1
MUSKAN KUMARI
1
DAV ALkusa December 30, 1899
What is My SQL ?
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,”.
1
MUSKAN KUMARI
2
DAV ALkusa December 30, 1899
Database Installation
import mysql.connector
password=input('To Continue Enter Your Password:')
mydb=mysql.connector.connect(host="localhost",user="root",passw
d=password)
mycursor=mydb.cursor()
try:
mycursor.execute('create database fashion')
except:
pass
mycursor.execute('use fashion')
mycursor.execute('create table product(product_id char(4) Primary
Key, PName varchar(20) not null, brand varchar(10), Product_for
varchar(6),season varchar(6),rate int(5) not null)')
mycursor.execute('create table purchase(purchase_id char(6) not
null,item_id char(4) references product(product_id),no_of_items
int(3) not null,amount int(7),Purchase_date date)')
mycursor.execute('create table stock(item_id char(4) references
product(product_id),Instock int(3) not null,status varchar(10) not
null)')
mycursor.execute('create table sales(sale_id char(6) Primary
key,item_id char(4) references product(product_id),no_of_item_sold
int(3) not null,sale_rate int(5) not null,amount int(7) not
null,date_of_sale date)')
1
MUSKAN KUMARI
3
DAV ALkusa December 30, 1899
mydb.close()
The software project is distributed with a backup copy of a Database named fashion with
required tables. Some dummy records are present in the tables for testing purposes, which
can be deleted before inserting real data. The project is automatically creating tables in the
MySQL RDBMS of your computer system.
Note: The PC must have MySQL server with user (root) and password (kvuc) . If root
password is any other password, it can be changed by running MySQL Server Instance
Configure Wizard.
Start Program MySQL MySQL Server MySQL Server Instance Config Wizard
Provide current password of root and new password as “kvuc” , this will change the root
password.
We have to create the database ‘ stock’ , and the tables created are:-
product
purchase
sales
stock
1
MUSKAN KUMARI
4
DAV ALkusa December 30, 1899
Table Design:
The database of Library System contains 4 tables. The tables are normalized to minimize the
redundancies of data and enforcing the validation rules of the organization. Most of the tables are
designed to store master records. The tables and their structure are given below.
1
MUSKAN KUMARI
5
DAV ALkusa December 30, 1899
1
MUSKAN KUMARI
6
DAV ALkusa December 30, 1899
SOURCE CODE
import os
import platform
import mysql.connector
import datetime
try:
mydb=mysql.connector.connect(host="localhost",user="r
oot",
passwd=password,database="fashion")
mycursor=mydb.cursor()
except:
mydb=0
print('Incorrect Password')
exit()
print("*"*80)
print("* * * * * * * * * * Welcome to the Project of
Fashion Store * * * * * * * * * * ")
print("* * * * * * * * * * * Developed by: MUSKAN
KUMARI AND JASIKA SINGH * * * * * * * * * * * * * ")
print("*"*80)
print("")
def AddProduct():
L=[]
stk=[]
pid=input("Enter the Product ID : ")
L.append(pid)
IName=input("Enter the Product Name : ")
L.append(IName)
brnd=input("Enter the Product Brand Name : ")
L.append(brnd)
fr=input("Enter Male/Female/Kids : ")
L.append(fr)
sn=input("Enter Winter/Summer : ")
L.append(sn)
rate=int(input("Enter the Rates for Product :"))
L.append(rate)
product=(L)
1
MUSKAN KUMARI
7
DAV ALkusa December 30, 1899
def EditProduct():
pid=input("Enter product ID to be edited : ")
sql="select * from product where product_id=%s"
ed=(pid,)
mycursor.execute(sql,ed)
res=mycursor.fetchall()
for x in res:
print(x)
print("")
fld=input("Enter the field which you want to
edit : ")
val=input("Enter the value you want to set :
")
sql="Update product set " + fld +"='" + val +
"' where product_id='" + pid + "'"
sq=sql
mycursor.execute(sql)
print("Editing Don : ")
print("After correction the record is : ")
sql="select * from product where product_id=
%s"
ed=(pid,)
mycursor.execute(sql,ed)
res=mycursor.fetchall()
for x in res:
print(x)
mydb.commit()
1
MUSKAN KUMARI
8
DAV ALkusa December 30, 1899
def DelProduct():
pid=input("Enter the Product)id to be deleted :
")
sql="delete from sales where item_id=%s"
id=(pid,)
mycursor.execute(sql,id)
mydb.commit()
sql="delete from purchase where item_id=%s"
mycursor.execute(sql,id)
mydb.commit()
sql="delete from stock where item_id=%s"
mycursor.execute(sql,id)
mydb.commit()
sql="delete from product where product_id=%s"
mycursor.execute(sql,id)
mydb.commit()
print("One Item Deleted")
def ViewProduct():
print(80*'=')
print("Display Menu: Select the category to
display the data")
print("1. All Details")
print("2. Product Name:")
print("3. Product Brand:")
print("4. Product For:")
print("5. Product Season:")
print("6. Product ID:")
x=0
ch=int(input("Enter your choice to display : "))
if ch==1:
try:
csv=[]
sql="select * from product"
mycursor.execute(sql)
res=mycursor.fetchall()
for x in res:
print(x)
x=1
except:
print('No record found')
elif ch==2:
var='PName'
val=input("Enter the name of Product : ")
1
MUSKAN KUMARI
9
DAV ALkusa December 30, 1899
elif ch==3:
var='brand'
val=input("Enter the name of Brand : ")
elif ch==4:
var='Product_for'
val=input("Enter Male/Femal/Kids : ")
elif ch==5:
var='season'
val=input("Enter the Season : ")
elif ch==6:
var='product_id'
val=input("Enter the Product_id : ")
if x==0:
sql="select * from product where " + var + "
= %s"
sq=sql
tp=(val,)
mycursor.execute(sq,tp)
res=mycursor.fetchall()
for x in res:
print(x)
def PurchaseProduct():
mn=""
dy=""
now=datetime.datetime.now()
purchaseID=str(now.year)+str(now.month)
+str(now.day)
L=[]
Lst=[]
L.append(purchaseID)
itemId=input("Enter Product ID : ")
L.append(itemId)
itemNo=int(input("Enter the number of Items : "))
L.append(itemNo)
sql="select rate from product where product_id=
%s"
pid=(itemId,)
mycursor.execute(sql,pid)
res=mycursor.fetchone()
for x in res:
print("rate is : ", x)
amount=x*itemNo
2
MUSKAN KUMARI
0
DAV ALkusa December 30, 1899
def ViewPurchase():
item=input("Enter Product Name : ")
sql="select product.product_id,
product.PName,product.brand,purchase.no_of_items,purc
hase.purchase_date,purchase.amount from product INNER
2
MUSKAN KUMARI
1
DAV ALkusa December 30, 1899
def SaleProduct():
now=datetime.datetime.now()
saleID=str(now.year)+str(now.day)+str(now.month)
L=[]
L.append(saleID)
itemId=input("Enter Product ID : ")
L.append(itemId)
itemNo=int(input("Enter the number of Items : "))
L.append(itemNo)
sql="select rate from product where product_id=
%s"
pid=(itemId,)
mycursor.execute(sql,pid)
res=mycursor.fetchall()
for x in res:
print("The rate of item is :",x)
dis=int(input("Enter the discount : "))
saleRate=x[0]-(x[0]*dis/100)
L.append(saleRate)
amount=itemNo*saleRate
L.append(amount)
print(L[-1])
mnth=now.month
2
MUSKAN KUMARI
2
DAV ALkusa December 30, 1899
if mnth<=9:
mn="0"+str(mnth)
else:
mn=str(mnth)
day=now.day
if day<=9:
dy="0"+str(day)
else:
dy=str(day)
dt=str(now.year)+"-"+mn+"-"+dy
L.append(dt)
tp=(L)
sql="insert into sales (sale_id,
item_id,no_of_item_sold,sale_rate,amount,date_of_sale
) values(%s,%s,%s,%s,%s,%s)"
mycursor.execute(sql,tp)
mydb.commit()
sql="Select Instock from stock where item_id=
%s"
mycursor.execute(sql,pid)
res=mycursor.fetchall()
for x in res:
print("Total Items in Stock were : ",x)
instock=x[0]-itemNo
if instock>0:
status="Yes"
tp=(instock,status,itemId)
sql="update stock set instock=%s,status=%s
where item_id=%s"
print("Remaining Items in Stock are :
",instock)
mycursor.execute(sql,tp)
mydb.commit()
def ViewSales():
item=input("Enter Product Name : ")
sql="select product.product_id,
product.PName,product.brand,sales.no_of_item_sold,sal
es.date_of_sale,sales.amount from sales, product
where product.product_id=sales.item_id and
product.PName=%s"
itm=(item,)
mycursor.execute(sql,itm)
res=mycursor.fetchall()
2
MUSKAN KUMARI
3
DAV ALkusa December 30, 1899
for x in res:
print(x)
def MenuSet(): #Function For The SFashion Store Sy
print(80*'=','\n')
print("Enter 1 : To Add Product ")
print("Enter 2 : To Edit Product ")
print("Enter 3 : To Delete Product ")
print("Enter 4 : To View Product ")
print("Enter 5 : To Purchase Product")
print("Enter 6 : To View Purchases")
print("Enter 7 : To View Stock Detials")
print("Enter 8 : To Sale the item")
print("Enter 9 : To View Sales Detials")
print("Enter 0 : To EXIT")
try: #Using Exceptions For
Validation
userInput = int(input("Please Select An Above
Option: ")) #Will Take Input From User
except ValueError:
exit("\nHy! That's Not A Number") #Error
Message
else:
print("\n") #Print New Line
if(userInput == 1):
AddProduct()
elif(userInput == 2):
EditProduct()
elif (userInput==3):
DelProduct()
elif (userInput==4):
ViewProduct()
elif (userInput==5):
PurchaseProduct()
elif (userInput==6):
ViewPurchase()
elif (userInput==7):
ViewStock()
elif (userInput==8):
SaleProduct()
elif (userInput==9):
ViewSales()
elif (userInput==0):
exit()
else:
2
MUSKAN KUMARI
4
DAV ALkusa December 30, 1899
def runAgain():
runAgn = input("\nWant To Run Again Y/n: ")
while(runAgn.lower() == 'y'):
MenuSet()
runAgn = runAgn
runAgain()
2
MUSKAN KUMARI
5
DAV ALkusa December 30, 1899
OUTPUT
>>>
=== RESTART: E:\CLASS XII PYTHON\Final Project\Fashion Store\fashion
store.py ==
To Continue Enter Your Password:kvuc
********************************************************************************
* * * * * * * * * * Welcome to the Project of Fashion Store * * * * * * * * * *
* * * * * * * * * * * Developed by: MUSKAN KUMARI AND JASIKA SINGH * * * * * * *
******
********************************************************************************
2
MUSKAN KUMARI
6
DAV ALkusa December 30, 1899
2
MUSKAN KUMARI
7
DAV ALkusa December 30, 1899
2
MUSKAN KUMARI
8
DAV ALkusa December 30, 1899
>>>
=== RESTART: E:\CLASS XII PYTHON\Final Project\Fashion Store\fashion
store.py ==
To Continue Enter Your Password:kvuc
********************************************************************************
* * * * * * * * * * Welcome to the Project of Fashion Store * * * * * * * * * *
* * * * * * * * * * * Developed by: MUSKAN KUMARI AND JASIKA SINGH * * * * * * *
******
********************************************************************************
================================================================
================
2
MUSKAN KUMARI
9
DAV ALkusa December 30, 1899
3
MUSKAN KUMARI
0
DAV ALkusa December 30, 1899
3
MUSKAN KUMARI
1
DAV ALkusa December 30, 1899
BIBLIOGRAPHY
In order to work on this project titled -Fashion- Store Management , the following books
and literature are referred by me during the various phases of development of the project.
3
MUSKAN KUMARI
2