Database Cosmetics
Database Cosmetics
2021-2022
CERTIFICATE
Signature of examiner
Kalpetta
Date:. / /
DECLARATION
Yours faithfully
Malavika M Nair
Signature
Kalpetta
/ /
ACKNOWLEDGEMENT
Sr. Particular
No
1 Brief overview of project
2 Need of computerization
3 Advantages of project
4 Limitations of project
5 Source code of project
6 Output screening
7 Future enhancement of project
8 bibliography
OVERVIEW OF THE PROGRAM
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.
DBMS
• Relation model
• Hierarchical model
• Network model
CHARACTERISTICS OF DB MS: -
• Data sharing
• Data standardization
• Sequential file
• Serial file
• Text file
• Binary File
NEED FOR COMPUTERISATION
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.
ADVANTAGES OF PROJECT
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.
SOURCE CODE OF PROJECT
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(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()
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(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,)
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
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():
mycursor.execute(sql,rl)
mycursor.execute(sql,rl)
mydb.commit()
def MenuSet(): #Function For The Student Management System
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.python.org