Professional Documents
Culture Documents
Class : XII - C
Team members :
ARYAN VARMA
NAVYA BHENDE
RAISSA AGARWAL
SHIVANSH SINGH
CERTIFICATE
PRINCIPAL
SCHOOL SEAL
Date:
Acknowledgement
We have taken efforts in this project however it would not have been possible
without the kind support and help of many individuals. We would like to extend our
sincere thanks to all of them.
We are grateful to the teacher in charge Mrs. Geetha Murudi for guidance and
constant supervision as well as for providing necessary information regarding the
project and also for support in completing the project. We are grateful for her
patience and belief in us. Her investment in the complete process, constant
encouragement and insightful feedback helped us achieve our objectives.
We would also like to thank our family members whose support helped us complete
the project within the deadline. We also thank our group member for the
contribution and cooperation for making this project. This project was from the
support and contribution from a group member so we would like to thank each one
of us
Table Of Content
Sr. Topic
No.
1 Hardware and Software Specification
2 Introduction to Python.
1. Its feature
3 Introduction to MySQL
1. Its features
4 Flow Chart
5 Source code
6 Output
8 Conclusion
9 Bibliography
Hardware and Software Specification
Hardware requirements :
Processor:intel core i5 9th gen 2.4 GHz
Installed memory(RAM): 8.00 GB
System Type:64-bit OPerating System,x64-based processor
Display Resolution:1920 x 1080
Software requirements:
Operating system: Windows 10 Pro
IDLE: Idle Python
Front End : Python 3.10 64-bit
Back end : MySQL 8.0.26.0
Easy language
Python is an easy language. It is easy to read,write, learn and understand
Readable:
The Python language is designed to make developers' lives easy. Reading
a python code is like reading an English sentence. This is one of the key
reasons that makes Python best for beginners. Python uses indentation
instead of curly braces unlike other programming languages. This makes
the code look clean and easier to understand.
Interpreted Language:
Interpreted language. It comes with the IDLE (interactive development
environment). This is an interpreter and follows the REPL structure (read-
evaluate-print-loop). It executes and displays the output of one line at a
time so it displays error while you are running and a line and displays the
entire stack trace for the error.
Dynamically-typed Language:
You don't need to declare a data type while defining a variable. the
interpreter determines this at runtime based on the types of the part of
the expression. this is easy for programmers but can create runtime error.
Object-Oriented
Python is object-oriented but supports both functional and object-oriented
programming. everything in Python is an object.
Open-Source
Python is open-source and the community is always contributing to it improve
it. It is free and its source code is freely available to the public you can
download Python from the official Python website
Features of MySQL:
Open-Source:
MySQL is open source, which means its software can be downloaded, used
and modified by anyone. It is free to use and easy-to-understand.
Scalable:
Scalability refers to the ability of a system to work easily with small
amounts of data, Amount of data, clusters of Machines, and so on. MySQL
Developed to work with large databases.
Data Types:
It contains multiple data types such as unsigned integers, signed integers,
float(FLOAT), double(DOUBLE),character(CHAR), variable character
(VARCHAR),text,blob,date time,datetime,timestamp,years and so on.
Character Sets
It Supports different character sets, and this includes latin1 (cp1252
character encoding), German,ujis, other Unicode character sets and so on
Secure
Provide a secure interface since it has a password system which is flexible,
and ensure that it is verified based on the host before accessing the
database. The password is encrypted while connecting to the server
We designed this system for the customer to easily be able to book a room or
avail any other service wished for by the customer at a hotel/resort to ensure
they have the most luxurious experience possible and maintain a calm and serene
peaceful mood.
Objective:-
To book a hotel room with ease by entering the needed information and also
availing various other services offered by it.
FLOW CHART:-
SOURCE CODE :
1.
import pickle
import csv
#function for menu
def rest():
print("----------------------------------------------------")
print("====================MENU CARD====================")
print('-----------------------------------------------------')
print("""BEVERAGES ROTI
========================= =========================
1] CHAI.......Rs 50 12]BUTTER ROTI.......Rs 50(1 ps)
2]COFFEE.......Rs 60 13]PLAIN NAAN.......Rs 60(1 ps)
3]JUICES.......Rs 80 14]NAAN........Rs 80(1 ps)""")
print("""\nSTARTERS RICE
========================= =========================
4] CHICKEN TIKKA.......Rs 250 15]PLAIN RICE........Rs 200
5]PANEER TIKKA.......Rs 250 16]SCHEZWAN RICE.......Rs 450
6]CHEESE CORN BALLS.......Rs 250 17]FRIED RICE.........Rs 350
7]CHEESY NACHOS..........Rs 250 18]JEERA RICE.......Rs 300""")
print("""\nMAIN COURSE DESSERT
========================= =========================
8] DAL MAKHANI.......Rs 400 19]VANILLA ICE CREAM.......Rs 200
9]BUTTER CHICKEN.......Rs 450 20]GULAB JAMUN..........Rs 100(1 ps)
10]PANEER BUTTER MASALA.......Rs 550 21]RASSGULLA.........Rs 100(1 ps)
11]MATAR PANEER........Rs 400 22]RASSMALAI.......Rs 400""")
#function for resteraunt order
def order():
amt=int(input("Enter amount of people dining with us: "))
print('''\nWhat would you like to order first:
1. Beverages
2. Starters
3. Main Course
4. Roti
5. Rice
6. Dessert
ENTER 7 TO BREAK''')
cost=[]
while True:
ch=int(input("\nWhat would you like to order: "))
if ch==1:
print('''\n1. Chai
2. Coffee
3. Juices
ENTER 4 TO BREAK''')
for i in range(amt):
ch1=int(input("Enter the BEVERAGE you'd like to have: "))
if ch1==1:
cost.append(50)
elif ch1==2:
cost.append(60)
elif ch1==3:
cost.append(80)
elif ch1==4:
break
elif ch1>=5:
print("error! this is not a valid option")
break
elif ch==2:
print('''\n1. Chicken Tikka
2. Paneer Tikka
3. Cheese Corn Balls
4. Cheesy Nachos
ENTER 5 TO BREAK''')
for i in range(amt):
ch2=int(input("Enter the STARTER you'd like to have: "))
if ch2==1:
cost.append(250)
elif ch2==2:
cost.append(250)
elif ch2==3:
cost.append(250)
elif ch2==4:
cost.append(250)
elif ch2==5:
break
else:
print("error! this is not a valid option")
break
elif ch==3:
print('''\n1. Dal Makhani
2. Butter Chicken
3. Paneer Butter Masala
4. Mater Paneer
ENTER 5 TO BREAK''')
for i in range(amt):
ch3=int(input("Enter the MAIN COURSE you'd like to have: "))
if ch3==1:
cost.append(400)
elif ch3==2:
cost.append(450)
elif ch3==3:
cost.append(550)
elif ch3==4:
cost.append(400)
elif ch3==5:
break
else:
print("error! this is not a valid option")
break
elif ch==4:
print('''\n1. Butter Roti
2. Plain Naan
3. Butter Naan
ENTER 4 TO BREAK''')
for i in range(amt):
ch4=int(input("Enter the ROTI you'd like to have: "))
if ch4==1:
amt1=int(input("Enter the amount of pieces you'd like: "))
cost1=50*amt1
cost.append(cost1)
elif ch4==2:
amt2=int(input("Enter the amount of pieces you'd like: "))
cost2=60*amt2
cost.append(cost2)
elif ch4==3:
amt3=int(input("Enter the amount of pieces you'd like: "))
cost3=80*amt3
cost.append(cost3)
elif ch4==4:
break
else:
print("error! this is not a valid option")
break
elif ch==5:
print('''\n1. Plain Rice
2. Schezwan Rice
3. Fried Rice
4. Jeera Rice
ENTER 5 TO BREAK''')
for i in range(amt):
ch5=int(input("Enter the RICE you'd like to have: "))
if ch5==1:
cost.append(200)
elif ch5==2:
cost.append(450)
elif ch5==3:
cost.append(350)
elif ch5==4:
cost.append(300)
elif ch5==5:
break
else:
print("error! this is not a valid option")
break
elif ch==6:
print('''\n1. Vanilla Ice Cream
2. Gulab Jamun
3. Rassgulla
4. Rasmalai
ENTER 5 TO BREAK''')
for i in range(amt):
ch6=int(input("Enter the DESSERT you'd like to have: "))
if ch6==1:
cost.append(200)
elif ch6==2:
amt5=int(input("Enter the amount of pieces you'd like: "))
cost5=100*amt5
cost.append(cost5)
elif ch6==3:
amt6=int(input("Enter the amount of pieces you'd like: "))
cost6=100*amt6
cost.append(cost6)
elif ch6==4:
cost.append(400)
elif ch6==5:
break
else:
print("error! this is not a valid option")
break
elif ch==7:
break
else:
print("error! this is not a valid option")
break
while True:
ttlcost=sum(cost)
tax=ttlcost*0.18
ttlcost1=ttlcost+tax
print("Your bill after tax is Rs.",ttlcost1)
break
#function for details of room
def room():
print("----SELECT ROOM TYPE----")
print(" 1. Standard Non-AC----Rs.3500")
print(" 2. Standard AC----Rs.4000")
print(" 3. 2-Bed Non-AC----Rs.4500")
print(" 4. 2-Bed AC----Rs.5000")
print(" 5. Maharaja Suite----Rs.7000")
ch=int(input("enter a choice: "))
if ch==1:
print("Room Type- Standard Non-AC")
print("AMMENITIES-->Double Bed; Balcony; Television; Bath Tub")
elif ch==2:
print("Room Type- Standard AC")
print("AMMENITIES-->Double Bed; Balcony; Television; Bath Tub")
elif ch==3:
print("Room Type- 2-Queen Bed Non-AC")
print("AMMENITIES-->2 Twin Sized Bed;Television; Bath Tub")
elif ch==4:
print("Room Type- 2-Bed AC")
print("AMMENITIES-->2 Twin Sized Bed;Television; Bath Tub")
elif ch==5:
print("Room Type- Maharaja Suite")
print("AMMENITIES-->King Sized Bed; Home Theatre; Balcony; Bath Tub")
else:
print("invalid")
#function for additional services
def addition():
cost1=[]
print("""EXTRA AMMENITIES |charges will apply|""")
print("\n==========================================================")
print(""" AMMENITIES COST (Rs)
==========================================================
1. VIDEO GAMES 300/- PER hr
2. SPA
i]foot massage 200/-
ii]full body massage 600/-
iii]manicure 300/-
iv]pedicure 300/-
3.SWIMMING POOL 250/- per hour
i]extra SUNSCREEN 50/-
ii]extra BATHING SUIT 100/-
4.EXTRA MATTRESS 200/- per mattress
ENTER 5 TO BREAK""")
while True:
ch=int(input("\nEnter the ammenity you'd like: "))
if ch==1:
hrs1=int(input("Enter amount of hours: "))
totalhr1= 300*hrs1
cost1.append(totalhr1)
elif ch==2:
print('''\n1. Foot Massage
2. Full Body Massage
3. Manicure
4.Pedicure
ENTER 5 TO BREAK''')
while True:
ch4=int(input("Enter your choice of massage: "))
if ch4==1:
cost1.append(200)
elif ch4==2:
cost1.append(600)
elif ch4==3:
cost1.append(300)
elif ch4==4:
cost1.append(300)
elif ch4==5:
break
else:
print("error! this is not a valid option")
break
elif ch==3:
hrs2=int(input("Enter the hours for swimming: "))
totalhr2=150*hrs2
cost1.append(totalhr2)
print('''\n1. Sunscreen
2. Swimsuit
PRESS 3 TO BREAK''')
while True:
ch5=int(input("Enter what you would like: "))
if ch5==1:
cost1.append(50)
elif ch5==2:
cost1.append(100)
elif ch5==3:
break
else:
print("error! this is not a valid option")
break
elif ch==4:
num1=int(input("Enter the amount of mattresses required: "))
num2=num1*200
cost1.append(num2)
break
else:
print("error! this is not a valid option")
break
while True:
totalcost3=sum(cost1)
print("Your total cost before tax is Rs.",totalcost3)
tax1=totalcost3*0.18
totalcost4=totalcost3+tax1
print("The total cost after tax is Rs.",totalcost4)
break
#main____________________________________________________________________________________
_________________
print("------------------------------Welcome to BAVS------------------------------")
name=input("\nPLEASE ENTER YOUR NAME: ")
number=int(input("PLEASE ENTER YOUR PHONE NUMBER: "))
address=input("PLEASE ENTER YOUR HOME ADDRESS: ")
#most important
print("\n1. BOOKING")
print("2. SEE DETAILS OF ROOM")
print("3. RESTERAUNT")
print("4. ADDITIONAL SERVICE")
print("5. BILLINGS")
while True:
choose=int(input("\nEnter the servie you'd like to avail: "))
#booking
if choose==1:
cost6=[]
checkin=input("Enter date of Check-In: ")
stay=int(input("Enter the no. of days for the stay: "))
num=int(input("\nEnter the no. of rooms required: "))
print("1.Non AC")
print("2.AC")
print("3.Suite")
ch=int(input("Enter the type of room required: "))
if ch==1:
print("\n1.Standard Non AC")
print("2. 2 Queen Bed Non AC")
ch1=int(input("Enter the room you'd like: "))
if ch1==1:
print("\nRoom for one night costs Rs.3,500")
ttlcost=stay*3500*num
cost6.append(ttlcost)
elif ch==2:
print("\nRoom for one night costs Rs.4,500")
ttlcost=stay*4500*num
cost6.append(ttlcost)
else:
print("INVALID")
elif ch==2:
print('''\n1. Standard AC
2. 2 Queen Bed AC''')
ch3=int(input("Enter your chocie: "))
if ch3==1:
print("\nRoom for one night costs Rs.4,000")
ttlcost=stay*4000*num
cost6.append(ttlcost)
elif ch3==2:
print("\nRoom for one night costs Rs.4,500")
ttlcost=stay*4500*num
cost6.append(ttlcost)
else:
print("INVALID")
elif ch==3:
print("\nRoom for one night costs Rs.7,000")
ttlcost=stay*7000*num
cost6.append(ttlcost)
else:
print("error! this is not a valid option")
break
print("\nBOOKING SUCCESSFUL")
print("THANK YOU FOR CHOOSING HOTEL BAVS")
#room details
elif choose==2:
room()
#resteraunt
elif choose==3:
print('''1. See Menu
2. Order
ENTER 3 TO BREAK''')
while True:
ch5=int(input("\nEnter your choice (Menu,Order,Break): "))
if ch5==1:
rest()
elif ch5==2:
order()
elif ch5==3:
break
else:
print("error! this is not a valid option")
break
elif choose==4:
addition()
elif choose==5:
print("Your bill for the room is Rs.",sum(cost6)+sum(cost6)*0.18)
print("Your bill for the resteraunt is Rs.",ttlcost)
print("Your bill for extra ammenities is Rs.",totalcost4)
TOTAL=(sum(cost6)+sum(cost6)*0.18+ttlcost1+totalcost4)
print("Total: ",TOTAL)
else:
print("error! this is not a valid choice")
break
Conclusion:-
Bibliography:-
1. Computer science with python by Sumita Arora class 12, Dhanpat
Rai Publication.
2. www.google.com