0% found this document useful (0 votes)
29 views

Hotel Manamgement System

Uploaded by

Sakshi Jha
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)
29 views

Hotel Manamgement System

Uploaded by

Sakshi Jha
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/ 21

COMPUTER SCIENCE

PROJECT REPORT ON
“HOTEL MANAGEMENT SYSTEM”

NAME :

ROLL NO :

PAGE- 1
CERTIFICATE

This is to certify that _______ of Class XI has prepared the report on


the Project entitled “HOTEL MANAGEMENT”. The report is found
worthy of acceptance as final project report for the subject Computer
Science of Class XI. They have prepared the report under my
guidance.

PAGE- 2
ACKNOWLEDGEMENT

We would like to express a deep sense of thanks & gratitude to my


project guide for guiding us immensely through the course of the
project. She always evinced keen interest in our work. Her
constructive advice & constant motivation have been responsible for
the successful completion of this project. Our sincere thanks goes
to ,Mr.Sanjay Singh Mann, our principal Sir, for his co-ordination in
extending every possible support for the completion of this project.
We also thank to our parents for their motivation and support. We
must thank to our classmates for their timely help and support for
compilation of this project.

PAGE- 3
INDEX

SR NO. CONTENTS
1. INTRODUCTION
i. ABOUT PYTHON
ii. ABOUT MYSQL
iii. ABOUT BANK MANAGEMENT
SYSTEM

2. SOURCE CODE

3. OUTPUT

4. BIBLIOGRAPHY

PAGE- 4
INTRODUCTION

ABOUT PYTHON:

Python is an interpreted, object-oriented, high-level programming


language with dynamic semantics. Its high-level built in data
structures, combined with dynamic typing and dynamic binding,
make it very attractive for Rapid Application Development, as
well as for use as a scripting or glue language to connect existing
components together. Python's simple, easy to learn syntax
emphasizes readability and therefore reduces the cost of program
maintenance. Python supports modules and packages, which
encourages program modularity and code reuse. The Python
interpreter and the extensive standard library are available in
source or binary form without charge for all major platforms, and
can be freely distributed.
Often, programmers fall in love with Python because of the
increased productivity it provides. Since there is no compilation
step, the edit-test-debug cycle is incredibly fast. Debugging
Python programs is easy: a bug or bad input will never cause a
segmentation fault. Instead, when the interpreter discovers an
error, it raises an exception. When the program doesn't catch the
exception, the interpreter prints a stack trace. A source level
debugger allows inspection of local and global variables,
evaluation of arbitrary expressions, setting breakpoints, stepping
through the code a line at a time, and so on. The debugger is
written in Python itself, testifying to Python's introspective
power. On the other hand, often the quickest way to debug a
program is to add a few print statements to the source: the fast
edit-test-debug cycle makes this simple approach very effective.

PAGE- 5
ABOUT MYSQL:

MySQL is a fast, easy-to-use RDBMS being used for many small


and big businesses. MySQL is developed, marketed and
supported by MySQL AB, which is a Swedish company. MySQL
is becoming so popular because of many good reasons −

 MySQL is released under an open-source license. So you


have nothing to pay to use it.

 MySQL is a very powerful program in its own right. It


handles a large subset of the functionality of the most
expensive and powerful database packages.

 MySQL uses a standard form of the well-known SQL data


language.

 MySQL works on many operating systems and with many


languages including PHP, PERL, C, C++, JAVA, etc.

 MySQL works very quickly and works well even with large
data sets.

 MySQL is very friendly to PHP, the most appreciated


language for web development.

 MySQL supports large databases, up to 50 million rows or


more in a table. The default file size limit for a table is
4GB, but you can increase this (if your operating system

PAGE- 6
can handle it) to a theoretical limit of 8 million terabytes
(TB).

 MySQL is customizable. The open-source GPL license


allows programmers to modify the MySQL software to fit
their own specific environments.

ABOUT HOTEL MANAGEMENT SYSTEM:


The Hotel Management System is a Python-based project
designed to automate various operations in a hotel, such as
booking rooms, checking in and out of guests, and generating
invoices. The project aims to streamline the administrative tasks
associated with managing a hotel. The system provides a user-
friendly interface to manage room availability, customer details,
and billing. It includes functionalities like adding new customer
records, checking room status, and calculating the total charges
for a stay, including room tariffs and additional services like food
or laundry.

PAGE- 7
SOURCE CODE

IMPLEMENTATION:
class hotelfarecal:

def
__init__(self,rt='',s=0,p=0,r=0,t=0,a=1800,name='',address='',cindate='',coutdate='',r
no=101):

print ("\n\n*****WELCOME TO HEWING HOTEL*****\n")

self.rt=rt

self.r=r

self.t=t

self.p=p

self.s=s

self.a=a

self.name=name

self.address=address

self.cindate=cindate

self.coutdate=coutdate

PAGE- 8
self.rno=rno

def inputdata(self):

self.name=input("\nEnter your name:")

self.address=input("\nEnter your address:")

self.cindate=input("\nEnter your check in date:")

self.coutdate=input("\nEnter your checkout date:")

print("Your room no.:",self.rno,"\n")

def roomrent(self):#sel1353

print ("We have the following rooms for you:-")

print ("1. type A---->rs 6000 PN\-")

print ("2. type B---->rs 5000 PN\-")

print ("3. type C---->rs 4000 PN\-")

print ("4. type D---->rs 3000 PN\-")

x=int(input("Enter Your Choice Please->"))

n=int(input("For How Many Nights Did You Stay:"))

if(x==1):

PAGE- 9
print ("you have opted room type A")

self.s=6000*n

elif (x==2):

print ("you have opted room type B")

self.s=5000*n

elif (x==3):

print ("you have opted room type C")

self.s=4000*n

elif (x==4):

print ("you have opted room type D")

self.s=3000*n

else:

print ("please choose a room")

PAGE- 10
print ("your room rent is =",self.s,"\n")

def restaurentbill(self):

print("*****RESTAURANT MENU*****")

print("1.water----->Rs20","2.tea----->Rs10","3.breakfast combo---
>Rs90","4.lunch---->Rs110","5.dinner--->Rs150","6.Exit")

while (1):

c=int(input("Enter your choice:"))

if (c==1):

d=int(input("Enter the quantity:"))

self.r=self.r+20*d

elif (c==2):

d=int(input("Enter the quantity:"))

self.r=self.r+10*d

elif (c==3):

d=int(input("Enter the quantity:"))

self.r=self.r+90*d

PAGE- 11
elif (c==4):

d=int(input("Enter the quantity:"))

self.r=self.r+110*d

elif (c==5):

d=int(input("Enter the quantity:"))

self.r=self.r+150*d

elif (c==6):

break;

else:

print("Invalid option")

print ("Total food Cost=Rs",self.r,"\n")

def laundrybill(self):

print ("******LAUNDRY MENU*******")

print ("1.Shorts----->Rs3","2.Trousers----->Rs4","3.Shirt--->Rs5","4.Jeans----
>Rs6","5.Girlsuit--->Rs8","6.Exit")

while (1):

#brought to you by code-projects.org

PAGE- 12
e=int(input("Enter your choice:"))

if (e==1):

f=int(input("Enter the quantity:"))

self.t=self.t+3*f

elif (e==2):

f=int(input("Enter the quantity:"))

self.t=self.t+4*f

elif (e==3):

f=int(input("Enter the quantity:"))

self.t=self.t+5*f

elif (e==4):

f=int(input("Enter the quantity:"))

self.t=self.t+6*f

elif (e==5):

f=int(input("Enter the quantity:"))

self.t=self.t+8*f

elif (e==6):

break;

else:

PAGE- 13
print ("Invalid option")

print ("Total Laundary Cost=Rs",self.t,"\n")

def gamebill(self):

print ("******GAME MENU*******")

print ("1.Table tennis----->Rs60","2.Bowling----->Rs80","3.Snooker---


>Rs70","4.Video games---->Rs90","5.Pool--->Rs50==6","6.Exit")

while (1):

g=int(input("Enter your choice:"))

if (g==1):

h=int(input("No. of hours:"))

self.p=self.p+60*h

elif (g==2):

h=int(input("No. of hours:"))

self.p=self.p+80*h

elif (g==3):

h=int(input("No. of hours:"))
PAGE- 14
self.p=self.p+70*h

elif (g==4):

h=int(input("No. of hours:"))

self.p=self.p+90*h

elif (g==5):

h=int(input("No. of hours:"))

self.p=self.p+50*h

elif (g==6):

break;

else:

print ("Invalid option")

print ("Total Game Bill=Rs",self.p,"\n")

def display(self):

print ("******HOTEL BILL******")

print ("Customer details:")

print ("Customer name:",self.name)

print ("Customer address:",self.address)

print ("Check in date:",self.cindate)

PAGE- 15
print ("Check out date",self.coutdate)

print ("Room no.",self.rno)

print ("Your Room rent is:",self.s)

print ("Your Food bill is:",self.r)

print ("Your laundary bill is:",self.t)

print ("Your Game bill is:",self.p)

self.rt=self.s+self.t+self.p+self.r

print ("Your sub total bill is:",self.rt)

print ("Additional Service Charges is",self.a)

print ("Your grandtotal bill is:",self.rt+self.a,"\n")

self.rno+=1

def main():

a=hotelfarecal()

PAGE- 16
while (1):

print("1.Enter Customer Data")

print("2.Calculate rommrent")

print("3.Calculate restaurant bill")

print("4.Calculate laundry bill")

print("5.Calculate gamebill")

print("6.Show total cost")

print("7.EXIT")

b=int(input("\nEnter your choice:"))

if (b==1):

a.inputdata()

if (b==2):

a.roomrent()

if (b==3):

PAGE- 17
a.restaurentbill()

if (b==4):

a.laundrybill()

if (b==5):

a.gamebill()

if (b==6):

a.display()

if (b==7):

quit()

main()

OUTPUT:
PAGE- 18
PAGE- 19
PAGE- 20
BIBLIOGRAPHY

BOOKS:
SUMITA ARORA-COMPUTER SCIENCE WITH
PYTHON
ARIHANT- ALL IN ONE COMPUTER SCIENCE CBSE
INTERNET:
 WEBSITE: WWW.PYTHON.ORG
 WEBSITE: WWW.WIKIPEDIA.ORG

PAGE- 21

You might also like