Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 40

HOTEL MANAGEMENT SYSTEM

A PROJECT REPORT
ON

HOTEL
MANAGEMENT
SYSTEM
FOR AISSCE 2020 EXAMINATION
[AS A PART OF THE COMPUTER SCIENCE COURSE
(083)]
SUBMITTED BY: -
NAME: _________________
ROLLNO.:_________________
UNDER THE GUIDANCE OF: Ms…………………..
PGT (COMP.SC)

1
HOTEL MANAGEMENT SYSTEM

CERTIFICATE

This is to certify that the Project / Dissertation entitled

HOTEL MANAGEMENT SYSTEM is a bonafide

work done by ____________________ of class XII

Session 2019-20 in partial fulfillment of CBSE’s

AISSCE Examination 2020 and has been carried out

under my direct supervision and guidance. This

report or a similar report on the topic has not been

submitted for any other examination and does not

form a part of any other course undergone by the

candidate.

………………………… ……………………………..
Signature of Student Signature of Teacher/Guide

Name: Name: Ms………………

Roll No.: Design.: PGTComp.Sc.

2
HOTEL MANAGEMENT SYSTEM

ACKNOWLEDGEMENT

I
, undertook this Project work, as the part of my XII-Computer
Science course(083). I had tried to apply my best of knowledge
and experience, gained during the study and class work
experience. However, developing software system is generally a quite
complex and time-consuming process. It requires a systematic study,
insight vision and professional approach during the design and
development. Moreover, the developer always feels the need, the help
and good wishes of the people near you, who have considerable
experience and idea.

I would like to extend my sincere thanks and gratitude to my teacher

Ms. ………………. , for giving valuable time and moral support to


develop this software.

I also feel indebted to my friends for the valuable suggestions during


the project work.

_______________

Class XII

3
HOTEL MANAGEMENT SYSTEM

C O N T E N T S

1. Introduction-----------------------------------------------------------------5

2. Objective & Scope of the Project------------------------------------7

3. System Implementation-------------------------------------------------9

3.1 The Hardware used:---------------------------------------------------9

3.2 The Softwares used:---------------------------------------------------9

4. Theoretical Background---------------------------------10

4.1 What is Python? ------ ---------------------------------------------10

4.2 What is File Handling --------------------------------------------12

4.3 What is Database? -----------------------------------------------13

4.4 What is MySQL?--------------------------------------------------14

5. System Design & Development-------------------------------------19

5.1 Database Design:-----------------------------------------------------19

5.2 Event Coding:----------------------------------------------------------25

6. Output----------------------------------------------------------------------32

7. User Manual---------------------------------------------------------------39

7.1 How to install: ----------------------------------------------------------39

7.2 Working with Software:----------------------------------------------39

8. References ----------------------------------------------------------------41

4
HOTEL MANAGEMENT SYSTEM

1. Introduction

This software project is developed to automate the functionalities of a

BANK MANAGEMENT SYSTEM.

The purpose of the software project is to develop the Management

Information System (MIS) and to automate the record keeping of

customers, deposit , withdraw and other transactions with a view to

enhance the decision making of the functionaries.

A MIS mainly consists of a computerized database, a collection of inter-

related tables for a particular subject or purpose like reference of acc_id in

all tables , capable to produce different reports relevant to the user. An

application program is tied with the database for easy access and interface

to the database. Using Application program(Python) or front-end, we can

store, retrieve and manage all information in proper way.

This software, being simple in design and working, does not require much

of training to users, and can be used as a powerful tool for automating a

HOTEL MANAGEMENT SYSTEM.

5
HOTEL MANAGEMENT SYSTEM

During coding and design of the software Project, Python IDLE, as a

powerful front-end tool is used for getting Graphical User Interface (GUI)

based integrated platform and coding simplicity. As a back-end a

powerful, open source RDBMS, MySQL is used as per requirement of the

CBSE curriculum of Computer Science Course(083).

2. Objective & Scope of the Project


6
HOTEL MANAGEMENT SYSTEM

he objective of the software project is to develop a computerized MIS


and to automate the functions of a HOTEL MANAGEMENT SYSTEM.
This software project is also aimed to enhance the current record
keeping system, which will help managers to retrieve the up-to-date
information at right time in right shape.

The proposed software system is expected to do the following


functionality-

 To provide a user friendly, Graphical User Interface (GUI) based


integrated and centralized environment for MIS activities.

 The proposed system should maintain all the records and


transactions, and should generate the required reports and
information when required.

 To provide graphical and user-friendly interface to interact with a


centralized database based on client-server architecture.

 To identify the critical operation procedure and possibilities of


simplification using modern IT tools and practices.

In its current scope, the software enables user to retrieve and update the
information from centralized database designed with MySQL . This
software does not require much training time of the users due to limited
functionality and simplicity.

During the development of HOTEL MANAGEMENT SYSTEM project,


Python IDLE, a powerful, open source event-driven form-based

7
HOTEL MANAGEMENT SYSTEM

development environment is used for modular design and future


expandability of the system.

Despite of the best effort of the developer, the following limitations and
functional boundaries are visible, which limits the scope of this application
software.

1. This software can store records and produce reports in pre-designed


format in soft copy. There is no facility yet to produce customized
reports. Only specified reports are covered.

2. There is no provision to calculate penalty or loss etc. for the customer


or bank; however it can be developed easily with the help of adding
modules.

3. It facilitates manager to record and update only transaction record.

So far as future scope of the project is concerned, firstly it is open to any


modular expansion i.e. other modules or functions can be designed and
embedded to handle the user need in future. Any part of the software and
reports can be modified independently without much effort.

8
HOTEL MANAGEMENT SYSTEM

3. System Implementation

3.1 The Hardware used:

While developing the system, the used hardware are:

PC with Intel Core i5-2400S processor having 4.00 GB RAM, 64-bit


Operating System , SVGA and other required devices.

3.2 The Softwares used:

 Microsoft Windows® 10 Pro as Operating System.


 Python 3.7.2 as Front-end Development environment.
 MySQL as Back-end Sever with Database for Testing.
 Mysql.connector to connect Python module with database.
 MS-Word 2010 for documentation.

9
HOTEL MANAGEMENT SYSTEM

4. Theoretical Background

4.1 What is Python ?


Python is an open source , object oriented high level programming
language developed by Guido Van Rossum in 1991 at the National
Research Institute for Mathematics,Netherlands.
Features of Python:
 It is an interactive ,interpreted language.
 It is a loosely typed object –oriented language.
 It is a free open –source and portable language,
 It takes less time to develop programs.
 It is extensible / extendable and highly efficient .
 It supports GUI.
 It can be easily compatible with other languages like C , C++ etc.
 It is used for both scientific and non-scientific programming.

Installing Python:
It can be installed by using website :
https://www.python.org/downloads/

Interacting with Python:


10
HOTEL MANAGEMENT SYSTEM

Python programs can be run in two ways:


 Using Command line window

 Using IDLE

11
HOTEL MANAGEMENT SYSTEM

4.2 What is File Handling?


A file in itself is a bunch of bytes stored on some storage devices like hard-disk,
thumb-drive etc. The data files can be stored in two ways: i. Text files ii. Binary
files A text file stores information in ASCII or Unicode characters, where each line
of text is terminated, (delimited) with a sepcial character known as EOL (End of
Line) character. In text files some internal translations take place when this EOL
character is read or written. A binary file is just a file that contains information in
the same format in which the information is held in memory, i.e., the file content
that is returned to you is raw (with no translation or no specific encoding). The
open() function is used to open a data file in a program through a file-object (or a
file-handle). A file-mode governs the type of operations (e.g., read/ write/
append) possible in the opened file i.e., it refers to how the file will be used once
it's opened. A text file can be opened in these file modes: 'r', 'w', 'a', 'r+', 'w+', 'a+'
A binary file can be opened in these file modes: 'rb', 'wb', 'ab', 'r+b'('rb+'),
'w+b'('wb+'); a+b'('ab+'). The three file reading functions of Python are: read(),
readline(), readlines() While read() reads some bytes from the file and returns it
as a string, readline() reads a line at a time and readlines() reads all the lines from
the file and returns it in the form of a list. The two writing functions for Python
data files are write() and writelines(). While write() writes a string in file,
writelines() writes a list in a file. The input and output devices are implemented as
files, also called standard streams. There are three standard streams: stdin
(standard input), stdout (standard output) and stderr (standard error) The
absolute paths are from the topmost level of the directory structure. The relative
paths are relative to current working directory denoted as a dot(.) while its parent
directory is denoted with two dots(..). The full name of a file or a directory is
called pathname. Steps to Process a file: there are five steps to use files in the
python program. i. Determine the type of file usage Under this step, you need to
determine whether you need to open the file for reading purpose (input type of
usage) or writing purpose (output type of usage).. ii. Open the file and assign its
reference to a file-object or file-handle Next, you need to open the file using
open() and assign it to a file-handle on which all the file-operations will be
performed. Just remember to open the file in the filemode that you decided in

12
HOTEL MANAGEMENT SYSTEM

step 1. iii. Now process as required As per the situation, you need to write
instructions to process the file as desired. For example, you might need to open
the file and then read it one line at a time while making some computation, and
so on. iv. Close the file This is very important step especially if you have opened
the file in write mode. This is because, sometimes the last lap of data remains in
buffer and is not pushed on to disk until a close() operation is performed.

4.3 What is Database?

Introduction and Concepts:


A database is a collection of information related to a particular subject or
purpose, such as tracking customer orders or maintaining a music
collection. Using any RDBMS application software like MS SQL Server,
MySQL, Oracle, Sybase etc, you can manage all your information from a
single database file. Within the file, divide your data into separate storage
containers called tables. You may and retrieve the data using queries.

A table is a collection of data about a specific topic, such as products or


suppliers. Using a separate table for each topic means you can store that
data only once, which makes your database more efficient and reduces
data-entry errors. Table organises data into columns (called fields) and
rows (called records).

A Primary key is one or more fields whose value or values uniquely


identify each record in a table. In a relationship, a primary key is used to
refer to specific record in one table from another table. A primary key is
called foreign key when it is referred to from another table.

To find and retrieve just the data that meets conditions you specify,
including data from multiple tables, create a query. A query can also
update or delete multiple records at the same time, and perform built-in or
custom calculations on your data.

13
HOTEL MANAGEMENT SYSTEM

Role of RDBMS Application Program:


A computer database works as a electronic filing system, which has a large
number of ways of cross-referencing, and this allows the user many
different ways in which to re-organize and retrieve data. A database can
handle business inventory, accounting and filing and use the information
in its files to prepare summaries, estimates and other reports. The
management of data in a database system is done by means of a general-
purpose software package called a Database Management System (DBMS).
Some commercially available DBMS are MS SQL Server, MS ACCESS,
INGRES, ORACLE, and Sybase. A database management system, therefore,
is a combination of hardware and software that can be used to set up and
monitor a database, and can manage the updating and retrieval of database
that has been stored in it. Most of the database management systems have
the following capabilities:

 Creating of a table, addition, deletion, modification of records.


 Retrieving data collectively or selectively.
 The data stored can be sorted or indexed at the user's discretion and
direction.
 Various reports can be produced from the system. These may be
either standardized report or that may be specifically generated
according to specific user definition.
 Mathematical functions can be performed and the data stored in the
database can be manipulated with these functions to perform the
desired calculations.
 To maintain data integrity and database use.
The DBMS interprets and processes users' requests to retrieve information
from a database. In most cases, a query request will have to penetrate
several layers of software in the DBMS and operating system before the
physical database can be accessed. The DBMS responds to a query by
invoking the appropriate subprograms, each of which performs its special

14
HOTEL MANAGEMENT SYSTEM

function to interpret the query, or to locate the desired data in the database
and present it in the desired order.

4.4 What is My SQL ?


The management of data in a database system is done by means of a
general-purpose software package called a Database Management System
(DBMS). Some commercially available RDBMS are MS SQL Server, MS
ACCESS, INGRES, ORACLE, and Sybase.

MySQL, the most popular Open Source SQL database management system,
is developed, distributed, and supported by Oracle Corporation. MySQL is
named after co-founder Monty Widenius's daughter, My. The name of the
MySQL Dolphin (our logo) is “Sakila,”.

 MySQL is a database management system.


A database is a structured collection of data. It may be anything from
a simple shopping list to a picture gallery or the vast amounts of
information in a corporate network. To add, access, and process data
stored in a computer database, you need a database management
system such as MySQL Server. Since computers are very good at
handling large amounts of data, database management systems play
a central role in computing, as standalone utilities, or as parts of other
applications.
 MySQL is based on SQL.
A relational database stores data in separate tables rather than
putting all the data in one big storeroom. This adds speed and
flexibility. The SQL part of “MySQL” stands for “Structured Query
Language.” SQL is the most common standardized language used to
access databases and is defined by the ANSI/ISO SQL Standard. The
SQL standard has been evolving since 1986 and several versions
exist. In this manual, “SQL-92” refers to the standard released in

15
HOTEL MANAGEMENT SYSTEM

1992, “SQL:1999” refers to the standard released in 1999, and


“SQL:2003” refers to the current version of the standard.

 MySQL software is Open Source.


Open Source means that it is possible for anyone to use and modify
the software. Anybody can download the MySQL software from the
Internet and use it without paying anything. If you wish, you may
study the source code and change it to suit your needs. The MySQL
software uses the GPL (GNU General Public License),
 The MySQL Database Server is very fast, reliable, and easy to use.
If that is what you are looking for, you should give it a try. MySQL
Server also has a practical set of features developed in close
cooperation with our users. You can find a performance comparison
of MySQL Server with other database managers on our benchmark
page. MySQL Server was originally developed to handle large
databases much faster than existing solutions and has been
successfully used in highly demanding production environments for
several years. Although under constant development, MySQL Server
today offers a rich and useful set of functions. Its connectivity, speed,
and security make MySQL Server highly suited for accessing
databases on the Internet.
 MySQL Server works in client/server or embedded systems.
The MySQL Database Software is a client/server system that consists
of a multi-threaded SQL server that supports different backends,
several different client programs and libraries, administrative tools,
and a wide range of application programming interfaces (APIs).

The Main Features of MySQL are :

16
HOTEL MANAGEMENT SYSTEM

 Written in C and C++.


 Works on many different platforms.
 Uses multi-layered server design with independent modules.
 Provides transactional and nontransactional storage engines.
 Designed to make it relatively easy to add other storage engines. This
is useful if you want to provide an SQL interface for an in-house
database.
 Uses a very fast thread-based memory allocation system.
 Executes very fast joins using an optimized nested-loop join.
 Implements SQL functions using a highly optimized class library that
should be as fast as possible. Usually there is no memory allocation at
all after query initialization.
 Provides the server as a separate program for use in a client/server
networked environment, and as a library that can be embedded
(linked) into standalone applications. Such applications can be used
in isolation or in environments where no network is available.
 Password security by encryption of all password traffic when you
connect to a server.
 Support for large databases. We use MySQL Server with databases
that contain 50 million records. We also know of users who use
MySQL Server with 200,000 tables and about 5,000,000,000 rows.
 MySQL client programs can be written in many languages. A client
library written in C is available for clients written in C or C++, or for
any language that provides C bindings.
 APIs for C, C++, Eiffel, Java, Perl, PHP, Python, Ruby, and Tcl are
available, enabling MySQL clients to be written in many languages.
 The Connector/ODBC (MyODBC) interface provides MySQL
support for client programs that use ODBC (Open Database
Connectivity) connections.
 The Connector/J interface provides MySQL support for Java client
programs that use JDBC connections. Clients can be run on Windows
or Unix. Connector/J source is available.
17
HOTEL MANAGEMENT SYSTEM

5. System Design & Development

18
HOTEL MANAGEMENT SYSTEM

5.1 Database Design:


An important aspect of system design is the design of data storage
structure. To begin with a logical model of data structure is developed first.
A database is a container object which contains tables, queries, reports and
data validation policies enforcement rules or contraints etc. A logical data
often represented as a records are kept in different tables after reducing
anomalies and redundancies. The goodness of data base design lies in the
table structure and its relationship.

This software project maintains a database named class12 which contains


the following tables:

Table Design:
The database of HOTEL MANAGEMENT SYSTEM contains 4 tables in
database Library. The tables are normalized to minimize the redundancies
of data and enforcing the validation rules of the organization. Most of the
tables are designed to store master records. The tables and their structure
are given below:
DBMS: MySQL
Host: localhost , User: root , Pass: h , DataBase: class12

Table Structure: (Images Bellow)


Mysql commands
create table custdata(custname varchar(20),addr varchar (30),indate varchar(10),outdate varchar(10));

create table roomtype (sno varchar(5),roomtype varchar(10),rent integer(10));

create table restaurent (sno integer(10),itemname varchar(10),rate integer(10));

19
HOTEL MANAGEMENT SYSTEM

create table laundary(sno integer(10),itemname varchar(10),rate integer(10));

STRUCTURE OF DATABASE : HOTEL

INSERT TUPLES INTO TABLE : CUSTDATA

20
HOTEL MANAGEMENT SYSTEM

SHOW RECORDS OF TABLE : CUSTDATA

INSERT TUPLES INTO TABLE : ROOMTYPE

insert into roomtype values ('1','type A',1000);


21
HOTEL MANAGEMENT SYSTEM

insert into roomtype values ('2','type B',2000);


insert into roomtype values ('3','type C',3000);
insert into roomtype values ('4','type D',4000);

SHOW RECORDS OF TABLE : ROOMTYPE

INSERT TUPLES INTO TABLE : RESTAURENT

insert into restaurent values(1,"tea",10);


22
HOTEL MANAGEMENT SYSTEM

insert into restaurent values(2,"coffee",10);


insert into restaurent values(3,"colddrink",20);
insert into restaurent values(4,"samosa",10);
insert into restaurent values(5,"sandwich",50);
insert into restaurent values(6,"Dhokla",30);
insert into restaurent values(7,"kachori",10);
insert into restaurent values(8,"milk",20);
insert into restaurent values(9,"noodles",50);
insert into restaurent values(10,"pasta",50);

SHOW RECORDS OF TABLE :RESTAURENT

INSERT TUPLES INTO TABLE : LAUNDARY

23
HOTEL MANAGEMENT SYSTEM

insert into laundary values(1,"pant",10);


insert into laundary values(2,"shirt",10);
insert into laundary values(3,"suit",10);
insert into laundary values(4,"sari",10);

SHOW RECORDS OF TABLE : LAUNDARY

24
HOTEL MANAGEMENT SYSTEM

25
HOTEL MANAGEMENT SYSTEM

PYTHON CODE :

import os
import platform
import mysql.connector
import pandas as pd
import datetime
global z
mydb = mysql.connector.connect(user='root', password='h', host='localhost', database='hotel')
mycursor=mydb.cursor()
def registercust():
L=[]
name=input("ENTER NAME:")
L.append(name)
addr=input("ENTER ADDRESS:")
L.append(addr)
indate=input("ENTER CHECK IN DATE:")
L.append(indate)
outdate=input("ENTER CHECK OUT DATE:")
L.append(outdate)
cust=(L)
sql="insert into custdata(name,addr,indate,outdate)values(%s,%s,%s,%s)"
mycursor.execute(sql,cust)
mydb.commit()

def roomtypeview():
print("Do YOY WANT TO SEE ROOM TYPE AVAILABLE : ENTER 1 FOR YES :")
ch=int(input("ENTER YOUR CHOICE:"))
if ch==1:
sql="select * from roomtype"
mycursor.execute(sql)
rows=mycursor.fetchall()
for x in rows:
print(x)

def roomrent():
print ("WE HAVE THE FOLLOWING ROOMS FOR YOU:-")
print ("1. TYPE A---->RS 1000 PN\-")
print ("2. TYPE B---->RS 2000 PN\-")
print ("3. TYPE C---->RS 3000 PN\-")
print ("4. TYPE D---->RS 4000 PN\-")
x=int(input("ENTER YOUR CHOICE PLEASE->"))
n=int(input("FOR HOW MANY NIGHTS DID YOU STAY:"))

26
HOTEL MANAGEMENT SYSTEM

if(x==1):
print ("YOU HAVE OPTED ROOM TYPE A")
s=1000*n
elif (x==2):
print ("YOU HAVE OPTED ROOM TYPE B")
s=2000*n
elif (x==3):
print ("YOU HAVE OPTED ROOM TYPE C")
s=3000*n
elif (x==4):
print ("YOU HAVE OPTED ROOM TYPE D")
s=4000*n
else:
print ("PLEASE CHOOSE A ROOM")
print ("your room rent is =",s,"\n")

def restaurentmenuview():
print("DO YOY WANT TO SEE MEBU AVAILABLE : ENTER 1 FOR YES :")
ch=int(input("ENTER YOUR CHOICE:"))
if ch==1:
sql="select * from restaurent"
mycursor.execute(sql)
rows=mycursor.fetchall()
for x in rows:
print(x)

def orderitem():
global s
print("DO YOY WANT TO SEE MEBU AVAILABLE : ENTER 1 FOR YES :")
ch=int(input("ENTER YOUR CHOICE:"))
if ch==1:
sql="select * from restaurent"
mycursor.execute(sql)
rows=mycursor.fetchall()
for x in rows:
print(x)
print("DO YOU WANT TO PURCHASE FROM ABOVE LIST:ENTER YOUR CHOICE:")
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):

27
HOTEL MANAGEMENT SYSTEM

print("YOU HAVE ORDERED COFFEE")


a=int(input("ENTER QUANTITY"))
s=10*a
print("YOUR AMOUNT FOR COFFEE IS :",s,"\n")
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 fopr samosa is :",s,"\n")
elif(d==5):
print("you have ordered sandwich")
a=int(input("enter quantity"))
s=50*a
print("your amount fopr 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")
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 MILK IS :",s,"\n")
elif(d==9):
print("you have ordered noodles")
a=int(input("ENTER QUANTITY"))
s=50*a
print("YOUR AMOUNT FOR NOODLES IS :",s,"\n")
elif(d==10):
print("YOU HAVE ORDERED PASTA")
a=int(input("ENTER QUANTITY"))
s=50*a
print("YOUR AMOUNT FOR PASTA IS :",s,"\n")

28
HOTEL MANAGEMENT SYSTEM

else:
print("PLEASE ENTER YOUR CHOICE FROM THE MENU")

def laundarybill():
global z
print("Do yoy 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

def lb():
print(z)

def res():
print(s)

def viewbill():
a=input("ENTER CUSTOMER NAME:")
print("CUSTOMER NAME :",a,"\n")
print("LAUNDAREY BILL:")
print(lb)
print("RESTAURENT BILL:")
print(res)

def Menuset():
print("ENTER 1: TO ENTER CUSTOMER DATA")
print("ENTER 2 : TO VIEW ROOMTYPE")
print("ENTER 3 : FOR CALCULATING ROOM BILL")
print("ENTER 4 : FOR VIEWING RESTAURENT MENU")
print("ENTER 5 : FOR RESTAURENT BILL")
print("ENTER 6 :FOR LAUNDARY BILL")
print("ENTER 7 : FOR COMPLETE BILL")
print("ENTER 8 : FOR EXIT:")
try:
userinput=int(input("PLEASE SELECT AN ABOVE OPTION:"))
except ValueError:
exit("\n HI THATS NOT A NUMBER")
userinput=int(input("ENTER YOUR CHOICE"))
if(userinput==1):

29
HOTEL MANAGEMENT SYSTEM

registercust()
elif(userinput==2):
roomtypeview()
elif(userinput==3):
roomrent()
elif(userinput==4):
restaurentmenuview()
elif(userinput==5):
orderitem()
elif(userinput==6):
laundarybill()
elif(userinput==7):
viewbill()
elif(userinput==8):
quit()
else:
print("ENTER CORRECT CHOICE")
Menuset()

def runagain():
runagn=input("\n WANT TO RUN AGAIN y/n:")
while(runagn.lower()=='y'):
if(platform.system()=="windows"):
print(os.system('cls'))
else:
print(os.system('clear'))
Menuset()
runagn=input("\n WANT TO RUN AGAIN Y/N:")
runagain()

30
HOTEL MANAGEMENT SYSTEM

31
HOTEL MANAGEMENT SYSTEM

MAIN MENU OF HOTEL MANAGEMENT SYSTEM

CHOICE 1: ENTER CUSTOMER DATA

32
HOTEL MANAGEMENT SYSTEM

CHOICE 2: VIEW ROOMTYPE

33
HOTEL MANAGEMENT SYSTEM

CHOICE 3: CALCULATING ROOM BILL

34
HOTEL MANAGEMENT SYSTEM

CHOICE 4: MENU FOR RESTAURENT

35
HOTEL MANAGEMENT SYSTEM

CHOICE 5:RESTAURENT BILL

36
HOTEL MANAGEMENT SYSTEM

CHOICE 6: LAUNDARY BILL

37
HOTEL MANAGEMENT SYSTEM

7. User Manual

7.1 How to Install Software:

Hardware Requirement-
 Intel Pentium/Celeron or similar processor based PC at Client/Server end.
 128 MB RAM and 4GB HDD space (for Database) is desirable.
 Standard I/O devices like Keyboard and Mouse etc.
 Printer is needed for hard-copy reports.
 Local Area Network(LAN) is required for Client-Server Installation

Software Requirement-
 Windows 2000/XP OS is desirable.
 NetBeans Ver 5.1 or higher should be installed with JDK and JVM.
 MySQL Ver 6.1 with Library Database must be present at machine.

Database Installation-

The software project is distributed with a backup copy of a Database named class12
with required tables. Some dummy records are present in the tables for testing
purposes, which can be deleted before inserting real data. The project is shipped with
manav.SQL file which installs a database and tables in the computer system.

Note: The PC must have MySQL server with user (root) and password (h) . If root
password is any other password, it can be changed by running MySQL Server Instance
Configure Wizard.

Start Program  MySQL MySQL Server MySQL Server Instance Config Wizard

Provide current password of root and new password as “h” , this will change the root
password.

38
HOTEL MANAGEMENT SYSTEM

To install a MySQL database from a dump file (khn.sql) , simply follow the following
steps.
Step 1: Copy the manav.sql file in C:\Program files\Mysql\MySql server 5.1\Bin
folder.
Step 2: Open MySQL and type the following command to create the database named
class12.
mysql> create database class12;
Step 3: Open Command Window (Start Run  cmd)
Step 4: Go to the following folder using CD command of DOS.
C:\Program files\Mysql\MySql server 5.1\Bin>
Step 5: type the following command on above prompt -
C:….\bin> mysql -u root -khn class12 <ais.sql
This will create a class12 database with required tables.

39
HOTEL MANAGEMENT SYSTEM

8.References

In order to work on this project titled – HOTEL MANAGEMENT SYSTEM, the following
books and literature are referred by me during the various phases of development of
the project:

(1) The Complete Reference Python 3.7

-by Shildit

(2) MySQL, Black Book


-by Steven Holzner

(2) Understanding SQL

– Gruber

(3) http://www.mysql.org/

(4) http://www.python.org/

(5) On-line Help of Python ®

(6) Computer Science for class XII -by Sumita Arora

(7) Together with Computer Science

(6) Various Websites of Discussion Forum and software development activities.

Other than the above-mentioned books, the suggestions and supervision of my teacher
and my classmates also helped me to develop this software project.

40

You might also like