0% found this document useful (0 votes)
70 views21 pages

Cosmetic Automation Sorav

The document describes a project on automating a cosmetic shop. It includes an overview of the project, the need for computerization in cosmetic shops, software and hardware requirements including Python and MySQL, advantages like optimized inventory management and sales tracking, and disadvantages like initial expenses. It also includes the source code for the automation project with functions for inserting and viewing cosmetic products, viewing customers, processing customer purchases, and removing cosmetic products. A menu function is provided to interface with these functions.

Uploaded by

PLABAN GUPTA
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)
70 views21 pages

Cosmetic Automation Sorav

The document describes a project on automating a cosmetic shop. It includes an overview of the project, the need for computerization in cosmetic shops, software and hardware requirements including Python and MySQL, advantages like optimized inventory management and sales tracking, and disadvantages like initial expenses. It also includes the source code for the automation project with functions for inserting and viewing cosmetic products, viewing customers, processing customer purchases, and removing cosmetic products. A menu function is provided to interface with these functions.

Uploaded by

PLABAN GUPTA
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/ 21

Project ON

COSMETIC SHOP AUTOMATION

Name : SORAV DUDHERIA


Class : XII- SCIENCE
Roll No.:
Subject : INFORMATICS PRACTICES (065)
CERTIFICATE
Class: XII- Science Year: 2023-24

This is to certify that Investigatory Project on the topic


Cosmetic Shop Automation is successfully completed by
Sorav Dudheria of Class XII-Science Roll No.: for the
academic session 2023-24 in the School Computer lab.

------------------- ------------------ -------------------------


Principal External Internal Examiner
Signature: Examiner (Subject Teacher)

Date: Department of : Informatics Practices


Acknowledgement

I, Sorav Dudheria of Class XII-Science, Roll No.:


would like to express my sincere gratitude to all those who
have supported me throughout this project. First and
foremost to our Principal, Mr. Clayton Francis for giving us
the opportunity and then to my Informatics Practices
teacher Mrs. Sujata Das for her vital support, guidance and
encouragement – without which this project would not have
come forth.
I would also like to express my gratitude to my school The
Assembly of God Church School for letting me use the
school laboratory.
INDEX

Sl. Particulars Page


No No.
1 Overview of project 01-02
2 Need of 03
computerization
3 Software and hardware 04
requirement
4 Advantages 05
5 Disadvantages 05
6 Source code of project 06-13

7 Database 14
8 Output screening 15-16

9 Bibliography 17
Overview OF PROJECT
Buying new cosmetic products is difficult. It can even be scary for
those who have sensitive skin and are prone to skin trouble. The
information needed to alleviate this problem is on the back of each
product, but it's thought to interpret those ingredient lists unless
you have a background in chemistry.
Instead of buying and hoping for the best, we can use data science to
help us predict which products may be good fits for us. It includes
various function programs to do the above mentioned tasks.
Data file handling has been effectively used in the program.
The database is a collection of interrelated data to serve multiple
applications. That is database programs create files of information.
So, we see that files are worked with most, inside the program.

DBMS:-
The software required for the management of data is called as
DBMS. It has 3 models.
• Relation model
• Hierarchical model
• Network model
RELATIONAL MODEL-: It’s based on the concept on relation. Relation
is the table that consists of rows and columns. The rows of the table
are called tuple and the columns of the table are called attribute.
Numbers of rows in the table is called as cardinality. Number of
columns in the table is called as degree.
HIERARCHICAL MODEL: In this type of model, we have multiple
records for each record. A particular record has one parent record.
No chide record can exist without parent record. In this, the records
are organized in tree (like structure
NETWORK MODEL: In this, the data is represented by collection of
records and relationship is represented by (ink or association.
CHARACTERISTICS OF DBMS: -
• It reduces the redundancy
• Reduction of data in inconsistency
• Data sharing
• Data standardization
DIFFERENT TYPES OF FILES: -BASED ON ACCESS:
• Sequential file
• Serial file
• Random (direct access) file BASED ON STORAGE:
• Text file
• Binary File
NEED FOR COMPUTERISATION

Computerization in a cosmetic store revolutionizes its functionality


by optimizing inventory management, sales tracking, and customer
engagement. Through automated inventory systems, the store can
efficiently monitor stock levels, minimizing shortages and ensuring
popular items are consistently available. This technology facilitates
data analysis of customer preferences, enabling personalized
recommendations and targeted marketing.
Moreover, automation simplifies daily operations and freeing up
staff to focus on providing exceptional customer service. Centralized
data management empowers the store to make informed decisions,
utilizing insights for strategic growth and profitability. Overall, this
integration of technology within the cosmetic store not only boosts
efficiency but also cultivates a more engaging and customer-centric
shopping experience, positioning the store favorably in a
competitive market.
SOFTWARE AND HARDWARE
REQUIREMENT

Software:
 Python
 MYSQL DB

Hardware:
 Processor  Intel
 Hard disk  80 gb
 Ram  1 gb
ADVANTAGEs
 The automated cosmetic shop management system should deal
with the automation of general workflow and administration
process of the shop.

 The main processes of the system focus on customer's request


where the system is able to search the most appropriate
products and deliver it to the customers.

 It should help the employees to quickly identify the list of


cosmetics that have reached the minimum quantity and also
keep a track of expired date for each cosmetic product.

Disadvantages
 Implementing advanced automated systems can be expensive
initially, especially for smaller businesses with limited budgets

 Increased reliance on technology raises the risk of system


failures or technical glitches, disrupting operations and
potentially leading to customer dissatisfaction.

 Excessive automation might diminish face-to-face interactions,


affecting the personalized customer service crucial in the
beauty industry.
SOURCE CODE

import os

import platform

import mysql.connector

import pandas as pd

mydb=mysql.connector.connect(host="localhost",user="root",passwd="root",
database="cosmetics")

mycursor=mydb.cursor()

def cosmeticsInsert():

l=[ ]

code=int(input("Enter the cosmetic ID number : "))

l.append(code)

name=input("Enter the Cosmetics Name: ")

l.append(name)

company=input("Enter company of Cosmetics : ")

l.append(company)

cost=int(input("Enter the Cost : "))

l.append(cost)

manudate=input("Enter the Date of Manufacture : ")

l.append(manudate)

expdate=input("Enter the Date of Expiry : ")

l.append(expdate)
stud=(l)

sql="insert into product(code,name,company,cost,manudate,expdate) values


(%s,%s,%s,%s,%s,%s)"

mycursor.execute(sql,stud)

mydb.commit()

def cosmeticsView():

print("Select the search criteria : ")

print("1. Roll")

print("2. Name")

print("3. All")

ch=int(input("Enter the choice : "))

if ch==1:

s=int(input("Enter cosmetics ID : "))

rl=(s)

sql="select * from cosmetics where code=%s"

mycursor.execute(sql,rl)

elif ch==2:

s=input("Enter Cosmetics Name : ")

rl=(s)

sql="select * from cosmetics where name=%s"

mycursor.execute(sql,rl)

elif ch==3:

sql="select * from cosmetics"

mycursor.execute(sql)
res=mycursor.fetchall()

print("The Cosmetics Stock details are as follows : ")

print("(Cosmetics ID, Cosmetics Name, Cost, Date of Manufacture, Date of


Expiry)")

for x in res:

print(x)

def viewCustomer():

print("Select the search criteria : ")

print("1. Customer ID")

print("2. Customer Name")

print("3. All")

ch=int(input("Enter the choice : "))

if ch==1:

s=int(input("Enter customer ID : "))

rl=(s)

sql="select * from customer where cust_id=%s"

mycursor.execute(sql,rl)

elif ch==2:

s=input("Enter Cosmetics Name : ")

rl=(s,)

sql="select * from customer where name=%s"

mycursor.execute(sql,rl)

elif ch==3:

sql="select * from customer"


mycursor.execute(sql)

res=mycursor.fetchall()

print("The Cosmetics Stock details are as follows : ")

print("(Cosmetics ID, Cosmetics Name, Cost, Date of Manufacture, Date of


Expiry)")

for x in res:

print(x)

def CustomerPurchase():

print("Please enter the details to purchase cosmetics product :")

sql="select * from customer"

mycursor.execute(sql)

res=mycursor.fetchall()

print("The Cosmetics Stock details are as follows : ")

print("(Cosmetics ID, Cosmetics Name, Cost, Date of Manufacture, Date of


Expiry)")

for x in res:

print(x)

cost=0.0

LI=dict()

ch='y'

tsum=0.0

q1=0

cc=0.0

#while(ch=='y'):

c1=input("Enter the items to be purchased : ")


r1=(c1,)

sql="Select cost from product where name=%s"

mycursor.execute(sql,r1)

res=mycursor.fetchall()

for x in res:

cost=float(x[0])

print (cost)

q1=int(input("Enter the item quantity: "))

cc=q1*cost

print(cc)

tsum=tsum+cc

ch=input("Want to purchase more items:")

else:

L=[ ]

cid=int(input("Enter customer ID"))

L.append(cid)

cname=input("Enter customer name")

L.append(cname)

phone_no=int(input("Enter Phone no."))

L.append(phone_no)

add=input("Enter Address")

L.append(add)

gender=input("Enter your Gender")

L.append(gender)

member=input("Enter membership")
L.append(member)

cosmme=(L)

sql="insert into customer


(cust_id,cname,c_phoneno,c_address,gender,membership)values
(%s,%s,%s,%s,%s,%s)"

mycursor.execute(sql,cosmme)

mydb.commit()

print("Record of customer saves...")

print("Total cost of item purchased is Rs.",tsum)

def removeCosmetics():

name=input("Enter the cosmetics name to be deleted : ")

rl=(name)

sql="Delete from customer where name=%s"

mycursor.execute(sql,rl)

sql="Delete from customer where cname=%s"

mycursor.execute(sql,rl)

mydb.commit()

def MenuSet(): #Function For The Student Management System

print("Enter 1 : To Add cosmetics product")

print("Enter 2 : To View Complete Cosmetics Stock")

print("Enter 3 : To Purchase any cosmetics Product ")

print("Enter 4 : To Remove any Cosmetic product")

print("Enter 5 : To View Customer Details")


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):

cosmeticsInsert()

elif (userInput==2):

cosmeticsView()

elif (userInput==3):

CustomerPurchase()

elif (userInput==4):

removeCosmetics()

elif (userInput==5):

viewCustomer()

else:

print("Enter correct choice. . . ")

MenuSet()

def runAgain():

runAgn = input("\nwant To Run Again Y/n: ")

while(runAgn.lower() == 'y'):

if(platform.system() == "Windows"):
print(os.system('cls'))

else:

print(os.system('clear'))

MenuSet()

runAgn = input("\nwant To Run Again Y/n: ")

print("Good Bye")

runAgain()
DATABASE
OUTPUT SCREENING
BIBLIOGRAPHY

1. www.google.com
2. www.python.org
3. BOOK – 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