Cosmetic Automation Sorav
Cosmetic Automation Sorav
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
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.
Disadvantages
Implementing advanced automated systems can be expensive
initially, especially for smaller businesses with limited budgets
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=[ ]
l.append(code)
l.append(name)
l.append(company)
l.append(cost)
l.append(manudate)
l.append(expdate)
stud=(l)
mycursor.execute(sql,stud)
mydb.commit()
def cosmeticsView():
print("1. Roll")
print("2. Name")
print("3. All")
if ch==1:
rl=(s)
mycursor.execute(sql,rl)
elif ch==2:
rl=(s)
mycursor.execute(sql,rl)
elif ch==3:
mycursor.execute(sql)
res=mycursor.fetchall()
for x in res:
print(x)
def viewCustomer():
print("3. All")
if ch==1:
rl=(s)
mycursor.execute(sql,rl)
elif ch==2:
rl=(s,)
mycursor.execute(sql,rl)
elif ch==3:
res=mycursor.fetchall()
for x in res:
print(x)
def CustomerPurchase():
mycursor.execute(sql)
res=mycursor.fetchall()
for x in res:
print(x)
cost=0.0
LI=dict()
ch='y'
tsum=0.0
q1=0
cc=0.0
#while(ch=='y'):
mycursor.execute(sql,r1)
res=mycursor.fetchall()
for x in res:
cost=float(x[0])
print (cost)
cc=q1*cost
print(cc)
tsum=tsum+cc
else:
L=[ ]
L.append(cid)
L.append(cname)
L.append(phone_no)
add=input("Enter Address")
L.append(add)
L.append(gender)
member=input("Enter membership")
L.append(member)
cosmme=(L)
mycursor.execute(sql,cosmme)
mydb.commit()
def removeCosmetics():
rl=(name)
mycursor.execute(sql,rl)
mycursor.execute(sql,rl)
mydb.commit()
except ValueError:
else:
if(userInput == 1):
cosmeticsInsert()
elif (userInput==2):
cosmeticsView()
elif (userInput==3):
CustomerPurchase()
elif (userInput==4):
removeCosmetics()
elif (userInput==5):
viewCustomer()
else:
MenuSet()
def runAgain():
while(runAgn.lower() == 'y'):
if(platform.system() == "Windows"):
print(os.system('cls'))
else:
print(os.system('clear'))
MenuSet()
print("Good Bye")
runAgain()
DATABASE
OUTPUT SCREENING
BIBLIOGRAPHY
1. www.google.com
2. www.python.org
3. BOOK – Python by Sumita Arora