0% found this document useful (0 votes)
17 views55 pages

CS Project 2023 24

you can use free

Uploaded by

djyarkk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views55 pages

CS Project 2023 24

you can use free

Uploaded by

djyarkk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 55

GEM INTERNATIONAL SENIOR SECONDARY SCHOOL

ACADEMIC YEAR : 2024-25

PROJECT REPORT ON
COURIER SERVICE SYSTEM

ROLL NO :
NAME : T.R.KRUTHIK PRANAV
CLASS : XII
SUBJECT : COMPUTER SCIENCE
SUB CODE : 083

PROJECT GUIDE : Mr. R.JEBA ALBIN RAJ, MCA.,B.Ed.,


PGT(COMPUTER SCIENCE)
GEM INTERNATIONAL SENIOR SECONDARY SCHOOL

CERTIFICATE

This is to certify that Cadet T.R.KRUTHIK PRANAV Roll


No:_______________ has successfully completed the project work entitled
‘COURIER SERVICE SYSTEM’ in the subject Computer Science (083) laid down in
the regulations of CBSE for the purpose of Practical Examination in Class XII to
be held in Gem International Senior Secondary School, Palladam
on______________.

Mr. R. JEBA ALBIN RAJ


PGT Computer Science

INTERNAL EXAMINER PRINCIPAL EXTERNAL EXAMINER


TABLE OF CONTENTS [ T O C ]

S.NO DESCRIPTION

01 ACKNOWLEDGEMENT

02 INTRODUCTION

03 OBJECTIVES OF THE PROJECT

04 PURPOSE OF THE PROJECT

05 PROPOSED PLAN

06 SYSTEM DEVELOPMENT LIFE CYCLE (SDLC)

07 FUTURE ENCHANCEMENT

08 SOURCE CODE

09 OUTPUT

10 TESTING

11 HARDWARE AND SOFTWARE REQUIREMENTS

12 BIBLIOGRAPHY

ACKNOWLEDGEMENT
Apart from the efforts of me, the success of any project depends largely on
the encouragement and guidelines of many others. I take this opportunity to express my
gratitude to the people who have been instrumental in the successful completion of this
project.

I express deep sense of gratitude to almighty God for giving me strength for the
successful completion of the project.

I express my heartfelt gratitude to my parents for constant encouragement while carrying


out this project.
I gratefully acknowledge the contribution of the individuals who contributed in bringing
this project up to this level, who continues to look after me despite my flaws,

I express my deep sense of gratitude to the luminary Mr. M. Maria Damasus Udesh
the Principal, GEM INTERNATIONAL SENIOR SECONDARY SCHOOL Who
has been continuously motivating and extending their helping hand to us.

I am overwhelmed to express my thanks to The Administrative Officer for providing me


an infrastructure and moral support while carrying out this project in the school.
My sincere thanks to Mr.R.Jeba Albin Raj Master In-charge, A guide, Mentor all the
above a friend, who critically reviewed my project and helped in solving each and every
problem, occurred during implementation of the project

The guidance and support received from all the members who contributed and who are
contributing to this project, was vital for the success of the project. I am grateful for their
constant support and help.
HARDWAREANDSOFTWAREREQUIRED

HARDWARE

1. PC
2. MOBILEPHONE

SOFTWARE

1. PYTHON(latest version)

2. MYSQL

3. PYTHON-MYSQLCONNECTOR
HOTEL
A hotel is a commercial establishment that provides lodging, accommodation,
and other services to travelers or tourists. Hotels typically offer a range of
rooms or suites with varying levels of amenities and services. These
establishments can vary widely in size and style , from small boutique hotels to
large luxury resorts.
Key features of hotels include:
1. Accommodatio: Hotels provide rooms or suites for guests to stay overnight
or for an extended period.
2. Services: In addition to lodging, hotels often offer various services such as
room service, housekeeping, concierge, and facilities like restaurants, gyms,
swimming pools, conference rooms, and more.
3. Classification: Hotels are often classified based on factors like their size,
amenities, and overall quality. Common classifications include
budget/economy hotels, mid-range hotels, and luxury hotels.
4. Booking: Guests typically make reservations to secure their
accommodations in advance. This can be done through various means,
including online booking platforms, travel agencies, or directly with the hotel.
5. Hospitality Industry: Hotels are an integral part of the hospitality industry,
which encompasses businesses that provide services to travelers and customers
seeking leisure and comfort.
Overall, hotels play a crucial role in the travel and tourism industry, offering a
temporary home away from home for individuals and group seeking
accommodation during their travels.
INTRODUCTION
1. The Hotel Management System (HMS) is a comprehensive software solution
designed to streamline and optimize the operations of hotels and hospitality
establishments. This integrated system combines various modules to efficiently
manage different aspects of hotel functions, from reservation and guest services
to billing and inventory management.

2. The reservation module of the HMS enables seamless booking


processes, allowing guests to make reservations online or through the
front desk. It maintains a centralized data base of room
availability ,ensuring accurate and up-to- date information. The system
also facilitates quick check- ins and check-outs, enhancing the overall
guest experience.

3. Efficient guest services are a hallmark of the HMS, which includes features such
as room service management, housekeeping, and personalized guest preferences.
This ensures a high level of customer satisfaction and loyalty. Additionally, the
system automates routine tasks, freeing up staff to focus on providing exceptional
service.

4. Financial management is another key component, encompassing billing, invoicing,


and reporting. The HMS generates detailed financial reports, helping hotel owners
and managers make informed decisions to maximize profitability. It also integrates
with point-of-sale systems, managing various revenue streams such as restaurants,
bars, and spa services.

5. Inventory management is crucial for maintaining optimal stock levels in areas like
housekeeping supplies and food and beverage items. The HMS tracks inventory,
automates reordering processes, and minimizes wastage, contributing to cost
efficiency.

6. Security features, including user access controls and data encryption, safeguard
sensitive information and ensure compliance with privacy regulations. The system
also aids in marketing efforts through guest relationship management (CRM)
tools, allowing hotels to personalize promotions and loyalty programs.
7. In conclusion, the Hotel Management System is an indispensable tool for modern
hotels, enhancing operational efficiency, improving guest satisfaction, and
ultimately contributing to the success of hospitality businesses.
Key features of a Hotel Management System typically include:

1. Reservation Management: Allows the hotel staff to efficiently handle room bookings,
cancellations, and modifications. It helps in managing room availability, rates, and
guest preferences.

2. Front Desk Operations: Enables the front desk staff to check-in/check-out guests,
generate room keys, and manage guest information. It may also include features like
guest folio creation and invoice generation.

3. Billing and Invoicing: Handles the financial spects of guest stays, including room
charges, additional services, and taxes. It generates invoices and receipts for guest.

4. Inventory Management: Tracks and manages hotel inventory, including housekeeping


supplies,linens, and other materials. This helps in maintaining optimal stock levels
and preventing shortages.

5. Housekeeping Management: Streamlines housekeeping tasks such as room cleaning


schedules, maintenance requests, and inventory restocking. It ensures rooms are
prepared efficiently for incoming guests.

6. Reporting and Analytics: Provides detailed reports and analytics on various aspects
of hotel operations, allowing management to makein formed decisions. Reports may
cover occupancy rates, revenue, and guest demographics.

7. Point of Sale (POS) :Manages the hotel's various Revenue-generating outlets suchas
restaurants, bars,spa,and other services .It helps in tracking sales, inventory, and
generating bills.

8. Guest Relationship Management (CRM): Helps in building and maintaining


relationships with guests by managing guest profiles, preferences, and
feedback.Thiscanleadtopersonalizedservicesand improved guest satisfaction.

9. SecurityandAccessControl:Ensuresthesecurityof guest data and property by


implementing access controls and monitoring systems. It may include features like
key card access and surveillance.

10.Channel Management: Manages the distributionof room inventory across various


online booking channels to optimize occupancy rates and maximize revenue.
11.Implementing a Hotel Management System notonly enhances operational efficiency
but also contributes to a better overall guest experience. The system can be tailored
to meet the specific needs of different types and sizes of hospitality establishments,
including hotels, resorts, motels, and bed-and-breakfasts.
import mysql.connector
from tabulate import tabulate import random
a=mysql.connector.connect(host="localhost",user="root",password="admin",database="
hotel_sunset")
y=a.cursor()

#all details for admin


#to show employe details
def emp details() :
a=mysql.connector.connect(host="localhost",user="root",password="admin",database="
hotel_sunset")
y=a.cursor()
q="select*from employees"
y.execute(q)
r=y.fetchall()
columns=[i[0]foriiny.description]
print(tabulate(r,headers=columns,tablefmt="fancy_grid"))
#to show customer details
def customdet():
a=mysql.connector.connect(host="localhost",user="root",password="admin",database="
hotel_sunset")
y=a.cursor()
x="select*frombooking"
y.execute(x)
r=y.fetchall()
columns=[i[0]fori iny.description]
print(tabulate(r,headers=columns,tablefmt="fancy_grid"))
a.commit()
#to show room details(allrooms,vacantrooms,bookedrooms)
def room_details():
whileTrue:
print("**********ROOMDETAILS**********")
print ("1.Show Rooms")
print("2.RoomsVacant")
print("3.RoomsBooked")
print("FOREXITENTERANYNO.:")
ch=int(input("Enteryourchoice:"))
if ch==1:
show_rooms()
elif ch==2:
room_vacant()
elif ch==3:
rooms_booked()
else:
print("IN VALID INPUT")
break
#to show all rooms
def showrooms():
a=mysql.connector.connect(host="localhost",user="root",password="admin",database="
hotel_sunset")
y=a.cursor()
y.execute("selectroom_type,prices,count(*)fromroomsgroupbyroom_type,prices;")
r = y.fetchall()
columns=[i[0]fori iny.description]
print(tabulate(r,headers=columns,tablefmt="fancy_grid"))
#to show room vacant defroom_vacant():
a=mysql.connector.connect(host="localhost",user="root",password="admin",database="
hotel_sunset")
y=a.cursor()
av="Available"
z="select*from rooms where Status='{}'".format(av)
y.execute(z)
r=y.fetchall()
columns=[i[0]foriiny.description]
print(tabulate(r,headers=columns,tablefmt="fancy_grid"))
#toshow booked rooms
def rooms_booked():
a=mysql.connector.connect(host="localhost",user="root",password="admin",database="
hotel_sunset")
y=a.cursor()
bk="Booked"
x="select*fromroomswhereStatus='{}'".format(bk)
y.execute(x)
r=y.fetchall()
columns=[i[0]fori iny.description]
print(tabulate(r,headers=columns,tablefmt="fancy_grid"))
#toshowrestaurantdetails def restaurant_details():
a=mysql.connector.connect(host="localhost",user="root",password="admin",database="
hotel_sunset") y=a.cursor()
z="select*fromorders"y.execute(z)
r=y.fetchall()
columns=[i[0]fori iny.description]
print(tabulate(r,headers=columns,tablefmt="fancy_grid")
#to show all feed back
def fedback():
a=mysql.connector.connect(host="localhost",user="root",password="admin",database="
hotel_sunset")
y=a.cursor()
x="select*from fdback"
y.execute(x)
x=y.fetchall()
columns=[i[0]fori iny.description]
print(tabulate(x,headers=columns,tablefmt="fancy_grid"))
#restaurant
def restaurant():
#VIEWMENU
defmenu():
a=mysql.connector.connect(host="localhost",user="root",password="admin",database="
hotel_sunset")
y=a.cursor()
b="select*frommenu".format() y.execute(b)
menu=y.fetchall()
columns=[i[0]foriiny.description]
print(tabulate(menu,headers=columns,tablefmt="fancy_grid")) if len(menu)>0:
print("Available")
a.commit()
yn=int(input("Dououwanttoorderanitem?type(1foryes/2forbacktomainpage):"))
if yn ==1:
b=order()
elif yn==2:
print("THANKYOU")
print("YOU HAVE BEEN REDIRECTED TO MAIN PAGE")
customer_slot()
#BOOKING ORDER
def_b_order():
a=mysql.connector.connect(host="localhost",user="root",password="admin",database="
hotel_sunset")
y=a.cursor()
Id=int(input("ENTER DISH NO.: "))
Quantity=int(input("ENTER QUANTITY:"))
Name=input("ENTER YOUR NAME: ")
Mobile_No=int(input("Entermobilrno."))
Address=input("Enter Address:")
f=("select*from menu where Dish_ID={}").format(Id)
y.execute(f)
x=y.fetchall() itn=x[0][1]
ip=x[0][3] tp=ip*Quantity
ins="insert into orders
(ID,Name,Quantity,Item_Price,Total_Price,Mobile_No,Adress)values({},'{}',{},{},{},
{},'{}')".format(Id, itn,Quantity,ip,tp,Mobile_No,Address)
y.execute(ins)
print("THANKS FOR THE ORDER","\n\n","YOUR ORDER HAs BEEN
ORDERED SUCCESSFULLY","\n\n")
print("YOU HAVE BEEN REDIRECTED TO THE MAIN PAGE")
a.commit()
#VIEWORDER
def vorders():
a=mysql.connector.connect(host="localhost",user="root",password="admin",database="
hotel_sunset")
y=a.cursor()
m=int(input("Enteryournumber:"))
n="select*from orders where Mobile_No={}".format(m) print("\n","YOUR RECENT
ORDERS","\n")
y.execute(n)
o=y.fetchall()
columns=[i[0]foriiny.description]
print(tabulate(o,headers=columns,tablefmt="fancy_grid")) for i in o:
p="select*frommean.orderswhereMobile_No={}andmenu.Dish_ID=orders.ID".format(m
)
y.execute(p)
q=y.fetchall()
a.commit()
#cancel order defcorder():
a=mysql.connector.connect(host="localhost",user="root",password="admin",database="
hotel_sunset") y=a.cursor()
x=int(input("enteryournumber:"))
s="deletefromorderswhereMobile_No={}".format(x) y.execute(s)
print("\n\n","YOUR ORDER HAS BEEN CAN CELLED")
print("YOU HAVE BEEN REDIRECTED TO THE MAIN PAGE","\n\n")
a.commit()
#feedback
def fdback():
a=mysql.connector.connect(host="localhost",user="root",password="admin",database="
hotel_sunset")
y=a.cursor()
fdn=input("Enter your name:") print("Write some thing about us...")
fdi=input()
x="insert into fdback values('{}','{}')".format(fdn,fdi) y.execute(x)
print("\n\n")
print("THANK YOU FOR YOUR FEED BACK")
print("\n")
print("YOUHAVEBEENREDIRECTEDTOTHEMAINPAGE")
a.commit()
welcome
def start1():
while True:
print("\n")
print("1.VIEW MENU")
print("2.VIEW YOUR ORDERS")
print("3. CANCEL ORDER")
print("4. FEEDBACK")
print("5.EXIT")
ch1=int(input("enteryourchoice:"))
if ch1==1:
menu()
elif ch1==2:
vorders()
elif ch1==3:
corder()
elifch1==4:
fdback()
elifch1==5:
break

else:
print("\n","IN VALID CHOICE","\n","TRYAGAIN.","\n")

start1()
#booking rooms section
# Create the table if not exists
create_table = "CREATE TABLE IF NOT EXISTS booking (Booking_ID int(10)
PRIMARY KEY,Room_Type varchar(20) not null,Guest_Name
VARCHAR(255),Phone_number varchar(15) not null, Room_Number int(5) not null,
Check_In_Date DATE, Check_Out_Date DATE)"
y.execute(create_table) def booking_id():
returnrandom.randint(10000,99999) #to book room
defbook_room(guest_name,ph_no,ro_no,check_in_date,check_out_date,td1,pr): try:
a=mysql.connector.connect(host="localhost",user="root",password="admin",
database="hotel_sunset")
y=a.cursor()
b_id=booking_id()
#Fetchavailablerooms
c="SELECT*FROM rooms WHERE Status='Available'androom_no={}".format(ro_no)
y.execute(c)
d=y.fetchall() if not d:
print("No available rooms.") return None
e=d[0]
#Update room status to 'booked'
update_query="UPDATE rooms SET Status='Booked 'WHERE
room_no={}".format(ro_no) y.execute(update_query)

#Insert booking record


ins="INSERT INTO booking(Booking_ID, Room_Type, Guest_Name,Phone_number,
Room_Number,Check_In_Date,Check_Out_Date,Total_Days,Price)VALUES({},'{}','{}
',{},{},'{}','{}',
{},'{}')".format(b_id,e[1],guest_name,ph_no,ro_no,check_in_date,check_out_date,td1,pr
) y.execute(ins)
print("Room booked successfully! RoomNumber:",ro_no) return b_id
except:
print("Error") finally:
a.commit()
#to book delux roomdefbook_delux_room():
a=mysql.connector.connect(host="localhost",user="root",password="admin",
database="hotel_sunset")
y=a.cursor() try:
z=random.randint(101,111)
ro_no = z
g_name = input("Enter guest name: ")
ph_no=input("Enter your phone number:")
in_date = input("Enter check-in date (YYYY-MM-DD): ")
out_date=input("Entercheck-outdate(YYYY-MM-DD):")
total_days_query="SELECT DATE DIFF('{}','{}')".format(out_date,in_date)
y.execute(total_days_query)
td1=y.fetchone()[0] pr = 15000 * td1
booking_id=book_room(g_name,ph_no,ro_no,in_date,out_date,td1,pr)
# Display booking history for the specific Booking_ID
If booking_id is not None:
q="SELECT*FROM booking WHERE Booking_ID={}".format(booking_id)
y.execute(q)
print("\n Booking History for Booking_ID{}:".format(booking_id)) x = y.fetchall()
columns=[i[0]foriiny.description]
print(tabulate(x,headers=columns,tablefmt="fancy_grid"))
except :
print("Error")
#to book double roomdefbook_double_room():
a=mysql.connector.connect(host="localhost",user="root",password="admin",
database="hotel_sunset")
y=a.cursor()
try:
z=random.randint(201,211)
ro_no = z
g_name = input("Enter guest name: ")
ph_no=input("Enter your phonenumber:")
in_date = input("Enter check-in date (YYYY-MM-DD): ")
out_date=input("Entercheck-outdate(YYYY-MM-DD):")
total_days_query="SELECTDATEDIFF('{}','{}')".format(out_date,in_date)
y.execute(total_days_query)
td1=y.fetchone()[0] pr = 25000 * td1
booking_id=book_room(g_name,ph_no,ro_no,in_date,out_date,td1,pr)
# Display booking history for the specific Booking_ID
If booking_id is not None:
q="SELECT*FROM booking WHERE Booking_ID={}".format(booking_id)
y.execute(q)
print("\nBooking History for Booking_ID{}:".format(booking_id)) x = y.fetchall()
columns=[i[0]foriiny.description]
print(tabulate(x,headers=columns,tablefmt="fancy_grid"))
except:
print("Error")

#to book king room


def book_king_room():
a=mysql.connector.connect(host="localhost", user="root", password="admin",
database="hotel_sunset")
y=a.cursor()
try:
z=random.randint(301,311)
ro_no = z
g_name = input("Enter guest name: ")
ph_no=input("Enteryourphonenumber:")
in_date = input("Enter check-in date (YYYY-MM-DD): ")
out_date=input("Entercheck-outdate(YYYY-MM-DD):")
total_days_query="SELECTDATEDIFF('{}','{}')".format(out_date,in_date)
y.execute(total_days_query)
td1=y.fetchone()[0]
pr = 40000 * td1
booking_id=book_room(g_name,ph_no,ro_no,in_date,out_date,td1,pr)
#Dis play booking history for the specific Booking_ID
if booking_id is not None:
q="SELECT*FROMbookingWHEREBooking_ID={}".format(booking_id)
y.execute(q)
print("\nBookingHistoryforBooking_ID{}:".format(booking_id))
x = y.fetchall()
columns=[i[0]foriiny.description]
print(tabulate(x,headers=columns,tablefmt="fancy_grid"))
except :
print("Error")
#to book balcony rooms
Def book_balcony_room():
a=mysql.connector.connect(host="localhost",user="root",password="admin",
database="hotel_sunset")
y =a.cursor()
try:
z=random.randint(401,411)
ro_no = z
g_name = input("Enter guest name: ")
ph_no=input("Enter your phone number:")
in_date = input("Enter check-in date (YYYY-MM-DD): ")
out_date=input("Entercheck-outdate(YYYY-MM-DD):")
total_days_query="SELECTDATEDIFF('{}','{}')".format(out_date,in_date)
y.execute(total_days_query)
td1=y.fetchone()[0] pr = 45000 * td1
booking_id=book_room(g_name,ph_no,ro_no,in_date,out_date,td1,pr)
# Display booking history for the specific Booking_ID
if booking_idisnot None:
q="SELECT*FROM booking WHERE Booking_ID={}".format(booking_id)
y.execute(q)
print("\nBookingHistoryforBooking_ID{}:".format(booking_id))
x = y.fetchall()
columns=[i[0]foriiny.description]
print(tabulate(x,headers=columns,tablefmt="fancy_grid"))
except :
print("Error")
#tobookcavanaroom def book_cavana():
a=mysql.connector.connect(host="localhost",user="root",password="admin",
database="hotel_sunset")
y=a.cursor()
try:
z=random.randint(501,506)
ro_no = z
g_name = input("Enter guest name: ")
ph_no=input("Enteryourphonenumber:")
in_date = input("Enter check-in date (YYYY-MM-DD): ")
out_date=input("Entercheck-outdate(YYYY-MM-DD):")
total_days_query="SELECT DATE DIFF('{}','{}')".format(out_date,in_date)
y.execute(total_days_query)
td1=y.fetchone()[0] pr = 90000 * td1
booking_id=book_room(g_name,ph_no,ro_no,in_date,out_date,td1,pr)
# Display booking history for the specific Booking_ID
if booking_id is not None:
q ="SELECT*FROM booking WHERE Booking_ID={}".format(booking_id)
y.execute(q)
print("\nBookingHistoryforBooking_ID{}:".format(booking_id))
x = y.fetchall()
columns=[i[0]foriiny.description]
print(tabulate(x,headers=columns,tablefmt="fancy_grid"))
except:
print("Error")
#user choice
def bookings():
try:
a =mysql.connector.connect(host="localhost", user="root", password="admin",
database="hotel_sunset")
y=a.cursor()
z="select*frombook_rooms"y.execute(z)
x=y.fetchall()
columns=[i[0]foriiny.description]
print(tabulate(x,headers=columns,tablefmt="fancy_grid"))
roomchoice = int(input("Enter Your Option : "))
ifroomchoice==1:
book_delux_room()
elif roomchoice == 2:
book_double_room()
elif roomchoice == 3:
book_king_room()
elifroomchoice==4:
book_balcony_room()
elif roomchoice == 5:
book_cavana()
else:
print("Sorry,MayBeYouAreGivingMeWrongInput,PleaseTryAgain!!!")
except:
print("Error") finally:
y.close()
a.close()
#gamingsection
def gaming():
print("1.TableTennis >15000Rs./HR")
print("2.Bowling >10000Rs./HR")
print("3.Snooker >25000Rs./HR")
print("4.VRWorldGaming >40000Rs./HR")
print("5.VideoGames >35000Rs./HR")
print("6.SwimmingPoolGames >50000Rs./HR")
print("7.Exit")
game=int(input("Enter What Game You Want ToPlay : "))
hour=int(input("Enter No Of Hours You Want To Play:"))
if game==1:
print("YOU HAVE SELECTED TO PLAY :Table Tennis")
gaming bill = hour * 15000
price=print("Total price=",gaming bill ,"Rs.")
elif game==2:
print("YOU HAVE SELECTED TO PLAY : Bowling")
gamingbill=hour*10000
price=print("Total price=",gaming bill, "Rs.")
elif game==3:
print("YOU HAVE SELECTED TO PLAY: Snooker")
gaming bill=hour*25000
price=print("Total price=",gaming bill, "Rs.")
elif game==4:
print("YOU HAVE SELECTED TO PLAY : VR World Gaming")
gaming bill = hour * 40000
price=print("Total price=",gaming bill, "Rs.")
elif game==5:
print("YOU HAVE SELECTED TO PLAY :Video Games")
gaming bill = hour * 35000
price=print("Total price=",gaming bill, "Rs.")
elif game ==6:
print("YOUHAVE SELECTEDTO PLAY : Swimming Pool Games")
gaming bill = hour *50000
price=print("Total price=",gaming bill, "Rs.")
else:
print("Sorry,May Be You Are Giving Me Wrong Input, Please Try Again!!!")
#feed back to be asked by user
def feedback():
a=mysql.connector.connect(host="localhost",user="root",password="admin",database="
hotel_sunset")
y=a.cursor()
fdn=input("Enter your name:")
print("Writesomethingaboutus...")
fdi=input()
x="insertintofdbackvalues('{}','{}')".format(fdn,fdi)
y.execute(x)
print("\n\n")
print("THANK YOU FOR YOUR FEED BACK")
print("\n")
print("YOU HAVE BEEN REDIRECTED TO THE MAIN PAGE")
a.commit()
#for admin
def admin_slot():
while True:
print("*********WELCOMEADMIN*********")
print("1.Employees Details")
print("2.Coustomer Details")
print("3.Room Details")
print("4.Feedback")
print("5.Restaurant Details")
print("6.Exit")
a=int(input("enter your choice"))
if a==1:
emp_details()
elif a==2:
customdet()
elif a==3:
room_detail

elifa==4:
fedback()
elif a==5:
restaurant_details() elif a==6:
break else:
print("\n\n","INVALID CHOICE","\n"," TRY AGAIN")
#for customer
Def customer_slot():
while True:
print("*************NAMASTE*************")
print("1.RESTAURANT")
print("2.BOOKROOMS")
print("3.GAMING")
print("4.FEEDBACK")
print("5.EXIT")
a=int(input("enter your choice"))
if a==1:
restaurant()
elif a==2:
bookings()
elif a==3:
gaming()
elif a==4:
feedback()
elif a==5:
break
else:
print("\n\n","INVALID CHOICE")
#first interface
while True:
print("*********WELCOMETOHOTELSUNSET*********")
print("1.admin")
print("2.customer")
print("3.exit")
a=int(input("whoareyou"))
if a==1:
def admin_login(a,username,password):
a=mysql.connector.connect(host="localhost",user="root",password="admin",database="
hotel_sunset")
y=a.cursor()
try:
#Check if the provided username and password match anad min record
query="SELECT*FROMusersWHEREusername=%sANDpassword=%s"
y.execute(query, (username, password))
admin_result=y.fetchone()
if admin_result:
print("Loginsuccessful.Welcome,Admin!")
else:
print("Invalid username o rpassword .Please try again.")
exceptExceptionase: print(f"Error:{e}")
a.close()
admin_username=input("Enter Admin Username:")
admin_password = input("Enter Admin Password: ")
admin_login(a, admin_username, admin_password)
admin_slot()
elif a==2:
customer_slot()
elifa==3:
break
 Alltables used:-

 Describingalltables:-
1. Booking:

2. Employees:
3. Feedback:

4.Menu:

5.Orders:
6.Rooms:

7.RoomDetails:

8.Users:
 First interface with admin login:

 Customer login:

 From restaurant view menu:


 Order an item:

 View order:

 Canceling an order:
 Feedback of restaurant:
 Book a room:
 Gaming:

 Feedback for hotel:


 Viewing employee details:

 Viewing customer details:


 Viewing room details:

 Showing vacantrooms:
 Showing booked rooms:

 Viewing feedbacks from both hotel and restaurant:


 Viewing restaurant details:
REFERENCES
 Class12 CS Sumita Arora book
 Class11 CS Sumita Arora book
 Mysql
 Python IDLE

You might also like