Velammal Vidhyashram Surapet: NAME: Vishal.p CLASS: 12A4 Roll Number: SSCE 2023 - 2024
Velammal Vidhyashram Surapet: NAME: Vishal.p CLASS: 12A4 Roll Number: SSCE 2023 - 2024
Velammal Vidhyashram Surapet: NAME: Vishal.p CLASS: 12A4 Roll Number: SSCE 2023 - 2024
SURAPET
Topic:
NAME: Vishal.p
CLASS: 12A4
ROLL NUMBER:
Senior School Certificate Examination-CBSE, New Delhi for the academic Year 2023- 2024.
Date: ……………………..
ACKNOWLEDGEMENT
Apart from the efforts taken by me , the success of the 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 the strength to
complete the project successfully.
I express my heartfelt gratitude to my parents for the constant encouragement while
carrying out this project.
My sincere thanks to Mr./Ms. kalaichelvi a guide, mentor, above all a friend, who
critically reviewed my project and guided me during the implementation of the project.
The guidance and support received from all the members who contributed , was vital
for the success of the project. I am grateful for their constant support and help.
01 ABSTRACT 5
02 SYSTEM CONFIGURATION 6
03 INTRODUCTION 7
05 PROPOSED SYSTEM 8
08 SOURCE CODE 11
09 OUTPUT (SCREENSHOTS) 21
10 CONCLUSION 31
11 BIBLIOGRAPHY 31
6
ABSTRACT
The main objective of this program is to help the travelers to get the
complete information about room booking with all the required details. This
management system is using python as front end and Mysql server as the
secured backend database. The ultimate motto of this project is to help the
travelers to get all the information about room prices, room’s availability,
food, laundry, games and other necessary information for room booking.
This project helps the users to carry this task online easily.
5
8
SYSTEM CONFIGURATION
HARDWARE CONFIGURATION
SOFTWARE REQUIREMENTS
• 1 GB RAM (2 GB+ recommended)
• 9-58 GB free hard disk space depending on edition and
configuration, including space required for temporary files
problems.
4. Students will demonstrate a breadth of knowledge in computer
PROPOSED SYSTEM
7
Today one cannot afford to rely on the fallible human beings of be
really wants to stand against today’s merciless competition where not to
wise saying “to err is human” no longer valid, it’s outdated to rationalize
your mistake. So, to keep pace with time, to bring about the best result
without malfunctioning and greater efficiency so to replace the unending
heaps of flies with a much sophisticated hard disk of the computer.
One has to use the data management software. Software has been
an ascent in atomization of various organizations. Many software products
working are now in markets, which have helped making the organizations
work easier and efficiently. Data management initially had to maintain a
lot of ledgers and a lot of paperwork has to be done but now software
product on this organization has made their work faster and easier. Now
only this software has to be loaded on the computer and work can be
done. This prevents a lot of time and money. The work becomes fully
automated and any information regarding the organization can be
obtained by clicking the button. Moreover, now it’s an age of
computers of and automating such an organization gives the better look.
12
13
LIBRARIES AND FUNCTIONS USED:
14
15
USER DEFINED FUNCTIONS USED:
5. laundrybill() :Using this function the customer can view the price of
the clothes
6. runagain() :Using this function the customer can again choose from
the menuset.
values('{}','{}','{}','{}')". format(name,addr,indate,outdate)"
• "select*from restaurant"
16
17
SOURCE CODE
import os
import platform
import
datetime
import random
import mysql.connector
mydb=mysql.connector.connect(user='root',password='vishal'
host='localhost',database='hotel')
def registercust():
name=input("enter name:")
addr=input("enter address:")
indate=input("enter check in date:")
outdate=input("enter check out
date:")
sql="insert into custdate (custname,addr,indate,outdate)values
(‘{}’,’{}’,’{}’,’{}’)”.format(name,addr,indate,outdate)
mycursor=mydb.cursor() mycursor.execute(sql)
mydb.commit()
18
19
def deletecust():
cname=input(“enter customer name to be deleted:”)
csql=”delete from custdate where custname=cname”
mycursor.execute(csql) count=0 for custname in
mycursor:
count+=1
print(“Record deleted successfully”)
if count==0: print(“Record
not found”)
mydb.commit()
def chooseroom():
s=0
print('Available room types:')
print('1. Single room/rs 2000 per
night') print('2. Twin room/rs 3000 per
night') print('3. Deluxe/rs 5000 per
night')
print('4. Room with a view/rs 6500 per night')
print('5. Suite/rs 8000 per night')
choice=int(input('\nEnter your preferred choice:'))
20
21
if choice==1:
n=int(input('How many nights do you plan to
stay:')) print('You have opted a single room')
s=s+2000*n
room_no=random.randint(1,501)
print('Your room number is:',room_no)
if choice==2:
n=int(input('How many nights do you plan to
stay:')) print('You have opted a twin room')
s=s+3000*n
room_no=random.randint(501,1001)
print('Your room number is:',room_no)
if choice==3:
n=int(input('How many nights do you plan to
stay:')) print('You have opted a deluxe room')
s=s+5000*n
room_no=random.randint(1001,1501)
print('Your room number is:',room_no)
22
23
if choice==4:
n=int(input('How many nights do you plan to
stay:')) print('You have opted a room with a view')
s=s+6500*n
room_no=random.randint(1501,2001)
print('Your room number is:',room_no)
if choice==5:
n=int(input('How many nights do you plan to
stay:')) print('You have opted a suite room')
s=s+8000*n
room_no=random.randint(2001,2501)
print('Your room number is:',room_no)
print('\n Your room price is',s,'rs')
def restaurentmenuview():
print("Do you want to see menu available:Enter 1 for
yes:") ch=int(input("enter your choice:")) if ch==1:
sql='select*from restaurant'
mycursor.execute(sql)
rows=mysql.fetchall()
print(x)
24
25
def orderitem():
print("Do you want to see menu available : Enter 1 for yes :")
ch=int(input("enter your choice:"))
if ch==1:
sql="select * from
restaurant"
mycursor.execute(sql)
rows=mycursor.fetchall() for x
in rows:
print(x)
d=int(input("enter your choice:"))
if d==1:
print("you have ordered tea")
a=int(input("enter quantity:"))
s=10*a
print("your amount for tea is:",s,"\n")
elif d==2:
print("you have ordered
coffee") a=int(input("enter
quantity")) s=10*a
print("you amount for coffee is:",s,"\n")
26
27
elif d==3:
print("you have ordered
colddrink") a=int(input("enter
quantity")) s=20*a
print("your amount for colddrink is:",s,"\n")
elif d==4:
print("you have ordered
samosa") a=int(input("enter
quantity")) s=10*a
print("your amount for samosa is:",s,"\n")
elif d==5:
print("you have ordered
sandwich") a=int(input("enter
qunatity")) s=50*a
print("your amount for sandwich is:",s,"\n")
elif d==6:
print("you have ordered
dhokla") a=int(input("enter
quantity")) s=30*a
print("your amount for dhokla is :",s,"\n")
28
29
elif d==7:
print("you have ordered
kachori") a=int(input("enter
quantity")) s=10*a
print("your amount for kachori is :",s,"\n")
elif d==8:
print("you have ordered
milk") a=int(input("enter
quantity")) s=20*a
print("your amount for kachori is :",s,"\n")
elif d==9:
print("you have ordered
noodles") a=int(input("enter
quantity")) s=250*a
print("your amount for noodles is :",s,"\n")
elif d==10:
print("you have ordered
pasta") a=int(input("enter
quantity")) s=150*a
print("your amount for pasta is :",s,"\n")
else:
print("please enter your choice from the menu")
30
31
def laundarybill():
global z
print("Do you want to see rate for laundary: Enter 1 for yes:")
ch=int(input("enter your choice:"))
if ch==1:
sql="select * from laundary"
mycursor.execute(sql) rows=mycursor.fetchall()
for x in rows:
print(x)
y=int(input("Enter Your number of clothes->"))
z=y*10
print("your laundary bill:",z,"\n")
return z
print("------WELCOME TO HOTEL TAJ ---- ")
print("DESCRIPTION")
print("The Taj Mahal Palace, Mumbai makes a wonderful starting point
from which to\
discover the charms that bring people from around the globe flocking to
Mumbai city,\
India’s commercial and entertainment capital. Around the corner from the
hotel is Colaba\
Causeway - a vibrant stretch filled with roadside stores, jewellery shops,
pubs and\ restaurants that whisks guests back in time to old Bombay.
Take tour of and learn about\
32
33
the rich history and architecture of this vibrant city, accompanied by
Government of India\
appointed and trained tourism officials. The hotel has a peaceful
environment and a good place to\
recreate and enjoy your vacation tours. Hotel Taj will provide all your
necessity things and we want\
to make you comfortable and fulfullied. If you are joining to stay with us,
just call to 456 from\
our room and we will satisfy your needs. Thanks for visting our hotel")
def Menuset():
print("\nEnter 1:To enter customer data")
print("Enter 2:To view roomtype with price")
print("Enter 3:For viewing restaurent
menu") print("Enter 4:For restaurent bill")
print("Enter 5:For laundary bill") print("Enter
6:To delete customer data:") print(“Enter
7:For exit:”) try:
userinput=int(input("please select an above option:"))
except ValueError: exit("\n hi thats
not a number")
if(userinput==1):
registercust()
elif(userinput==2):
chooseroom()
34
35
elif(userinput==3):
restaurentmenuview()
elif(userinput==4):
orderitem()
elif(userinput==5):
laundarybill()
elif(userinput==6):
deletecust()
elif (userinput==7):
print(“Thanks for visting”)
else: print("Enter correct
choice")
Menuset() def
runagain():
runagn=input("Do you want to run again y/n:")
while(runagn.lower()=='y'):
if(platform.system()=="windows"):
p=0
else:
li=0
Menuset()
runagn=input("Do you want to run again y/n:")
runagain()
36
OUTPUT(SCREENSHOTS)
37
To add another customer details
38
To view the restaurant bill
39
To access the restaurant menu
40
To view the laundary bill
41
To delete the customer data
To exit
42
MYSQL OUTPUT
43
Creating table restaurant and inserting values
44
Details from restaurant table
45
Details after deleting a record
46
47
CONCLUSION:
This computerized system store all the data in the database which makes it
easy to fetch and update whenever needed.
BIBILOGRAPHY:
https://www.w3schools.com/PYTHON/showpython.asp?filename=demo_mysql_test
https://pythonspot.com/mysql-with-python/
https://www.tutorialspoint.com/PYTHON/PYTHON_DATABASE_ACCESS
48
49