Hotel Management Class 12 Python Project
Hotel Management Class 12 Python Project
ERODE-638011
Developed by:
MANORANJITH.P
(Register No :)
1
NANDHA CENTRAL CITY SCHOOL [CBSE]
ERODE-638011
CERTIFICATE
2
ACKNOWLEDGEMENT
First and foremost I praise and thank almighty from the depth of my
heart, which has been the source of strength in the completion of my
project.
I also thank my Parents for their motivation & support. I must thank
my classmates for their timely help support for completion of this
project.
Last but not least, I would like to thank all those who had helped
directly or indirectly towards the completion of this project.
INDEX
1. Problem Definition 6
2. Problem Analysis 8
5. Source Code 13
6. Output 22
7. Bibliography 30
CONTENTS
Problem Definition
Problem Analysis
Source Code
Output
Bibliography
PROBLEM DEFINITION
Now a day’s Couriers are essential for the mobile world. To begin with
the introduction of our project, it is to manage the courier service and
the name of our courier system is “CARING COURIERS”.
This system is an advantage to all the drawbacks from all other
services. It helps in ensuring safety of the product. The delivery is
comparatively quicker. It provides door-to-door delivery services i.e,
pickup and drop. It works in the cities and between cities also. We keep
our words i.e, delivery timings are almost fixed. We believe in giving
services than getting profit. It creates a secure environment in this
covid pandemic. There is an option of cancelling the delivery within
one day of pickup.
cinfo ():To get information of the customer who wants the parcel to
courier to the destination. The information consists of Customer’s
name, Customer’s mobile number and Customer’s address. All the
information is stored in the table.
rinfo ():To get information of the customer who receives the parcel
at the destination. The information consists of Receiver’s name,
Receiver’s mobile number and Receiver’s address. All the
information is stored in the table.
billpay():It shows the information about the weight of the parcel and
its corresponding price to the customer. It stores Customer’s id,
name and mobile number in the table.
cb():It shows the information about the courier boy who is going to
pick and drop the parcel. Information such as Name, Mobile Number
and City is shown.
cancel (): It helps the customer to cancel the courier which was
placed one day before. It asks the name of the customer.
query (): It asks about the queries from the customer which will
attract people to come again next time.
previous() : It shows the previous placed orders by the same
customer. It asks the name of the customer from which it indentifies
and displays all the couriers placed.
PROBLEM ANALYSIS
There are Eight tables created in this system.
cb:This table contains the information which should be provided
to customer about courier boys. The information such as Name,
City and Mobile Number are stored. This will help the customer
to know the courier boy who is going to pick their parcel.
# Hardware:
# Software:
Module1.py:
import random
import mysql.connector as mc
cono=mc.connect(host="localhost",user="root",passwd="",database="p
roject")
c=cono.cursor()
def cinfo():
cn=input("Enter customer's name:")
cm=int(input("Enter customer's mobile number:"))
ca=input("Enter customer's address:")
e="insert into cinfo(name,mob_no,address)values('{}',
{},'{}')".format(cn,cm,ca)
c.execute(e)
cono.commit()
print("____________________________________________________
____")
def rinfo():
rn=input("Enter receiver's name:")
rm=int(input("Enter receiver's mobile number:"))
ra=input("Enter receiver's address:")
e="insert into rinfo1(name,mob_no,address)values('{}',
{},'{}')".format(rn,rm,ra)
c.execute(e)
cono.commit()
print("____________________________________________________
____")
def billpay():
print("WEIGHT and PRICE")
c.execute("select * from wp")
b=c.fetchall()
for i in b:
print(i)
'''w=input("enter the weight of your product:")
for j in i:
if j==w:
print(i[1])'''
print("Please do pay the corresponding Rupees")
cn=input("Enter customer's name:")
cm=input("Enter customer's mobile number:")
a=random.randint(1,100)
s="insert into
orders(cid,cname,mob_no)values('{}','{}','{}')".format(a,cn,cm)
c.execute(s)
cono.commit()
print("____________________________________________________
____")
def cb():
s=input("Enter your state name:")
c.execute("select * from cb where state='{}'".format(s))
d=c.fetchall()
for i in d:
print("Details of courier boy:")
print('[("Name","Contact Number","City")]')
print(d)
print("____________________________________________________
____")
def cancel():
i=input("Enter customer name:")
c.execute("delete from orders where cname='{}'".format(i))
cono.commit()
print("Your order is cancelled")
print("____________________________________________________
____")
def review():
f=input("Enter feedback about the services provided:")
r=input("Give us ratings out of 5:")
cb=input("Enter feedback/suggestion about the courier boy:")
c1="insert into
review(Overall_feedback,Ratings,cb_feedback)values('{}','{}','{}')".for
mat(f,r,cb)
c.execute(c1)
cono.commit()
print("____________________________________________________
____")
def query():
q=input("Any queries:")
if q.lower()!='no':
print("Will surely try to solve it!!")
print("____________________________________________________
____")
def previous():
n=input("Enter your name:")
e1="select * from orders where cname='{}'".format(n)
c.execute(e1)
d=c.fetchall()
for i in d:
print(i)
print("____________________________________________________
____")
print()
print("\t\t\tLET'S START THE COURIER PROCEDURE\t\t\t")
a=True
while a:
print("1 for courier placement")
print("2 for details about the destination")
print("3 for billing and payment")
print("4 for details about courier boy")
print("5 for cancellation")
print("6 for reviews")
print("7 for any queries")
print("8 for previous placed orders")
print("9 to quit")
i=int(input("Enter your choice (1,2,3,4,5,6,7,8,9)"))
if i==1:
cinfo()
elif i==2:
rinfo()
elif i==3:
billpay()
elif i==4:
cb()
elif i==5:
cancel()
elif i==6:
review()
elif i==7:
query()
elif i==8:
previous()
elif i==9:
print("Thank you!!\n Hope you liked our services")
a=False
Module2.py:
import mysql.connector as mc
cono=mc.connect(host="localhost",user="root",passwd="",database="p
roject")
c=cono.cursor()
print("Enter you details as asked:")
n=input("Enter your name:")
mob=input("Enter your mobile number:")
add=input("Enter your home address:")
qu=input("Enter your qualifications:")
s=input("Enter your strength:")
w=input("Enter your weakness:")
hi=input("Any health issue?:")
ci=input("Enter the state where you live:")
c1="insert into cb_info
values('{}','{}','{}','{}','{}','{}','{}','{}')".format(n,mob,add,qu,s,w,hi,ci)
c.execute(c1)
cono.commit()
print("You are ready to join")
OUTPUT
SQL TABLES
Cb table:
Cb_info table:
Cinfo table:
Login table:
Orders table:
Review table:
Rinfo1 table:
Wp table:
BIBLIOGRAPHY