4.database Cosmetics
4.database Cosmetics
CERTIFICATE
CLASS: Xii-a YEAR:2019-20
This is to certify that Investigatory Project is
successfully completed by ……………..............................… of
Class: XII , Division: A Roll no. : ………… for the academic
year 2019-2020 in the School Computer lab.
Principal
Acknowledgement:
I ,…………………………… of class XIITH A Roll No..............
INDEX
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.
DBMS
• Relation model
• Hierarchical model
• Network model
CHARACTERISTICS OF DB MS: -
• Data sharing
• Data standardization
• Serial file
• Text file
• Binary File
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.
SOFTWARE AND HARDWARE REQUIREMENT
Software :
PYTHON
MYSQL DB
HARDWARE :
Processor Intel
Hard disk 80 gb
Ram 1 gb
ADVANTAGES OF PROJECT
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 cosmetic product that
have reached the minimum quantity and also keep a track of
expired date for each cosmetic product. It should help the
employees to find the rack number in which the product is placed.It
is also Faster and more efficient way
LIMITATIONS of project
Our project meets the following limitations:
The software is not able to reserve tickets for more than 10 people per
train.
The fare allotted for every reservation is independent of Kilometres
travelled instead it is set for every mode (AC, Non-AC or General) of each
train.
The software is made such to carry out reservation in max 15 trains.
The software does not support multi-day reservation system, i.e., the
reservations cannot be done in advance rather it is carried out for single
day.
The software does not provide concession in fare rates for children, aged
people, armament etc. i.e., the fare identical for all people.
The software does not take into consideration the stations falling in
between the source and destination station.
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)
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:
mycursor.execute(sql)
res=mycursor.fetchall()
print("The Cosmetics Stock details are as follows : ")
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'):
r1=(c1,)
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)
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()
def removeCosmetics():
rl=(name)
mycursor.execute(sql,rl)
mycursor.execute(sql,rl)
mydb.commit()
try:
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
www.google.com
www.python.org