KRISH Project

Download as pdf or txt
Download as pdf or txt
You are on page 1of 61

A

Project Report

on

HOTEL MANAGEMENT SYSTEM


Submitted in partial fulfilment of the Requirements for

Submitted by

Krish Kumar
Board Roll No :

Guided by
Pradeep Ch Mohanty
PGT, Computer Science

Page No.

1 / 61
CERTIFICATE

THIS IS TO CERTIFY THAT THE PROJECT / DISSERTATION ENTITLED "HOTEL

MANAGEMENT SYSTEM " IS A BONAFIDE WORK DONE BY KRISH KUMAR OF

CLASS XII SESSION 2024-25 IN PARTIAL FULFILLMENT OF CBSE'S AISSCE

EXAMINATION 2025 AND HAS BEEN CARRIED OUTUNDER 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 TEACHER … … … … … …

ROLL NO. ...... .... ....... ........

Page No.

2 / 61
ACKNOWLEDGEMENT

We have to express our thanks unreserved by towards : Mr, Pradeep

Chandra Mohanty for the expert and valuable guidance lent to us in

completing this project work assigned to us. The tips provided by

them stood us to good stead in accomplishing our work to the best of

level form our side. Our heart goes out with deep gratitude to them,

for the perennial patronage in our studies and especially this project

work. We are sure to be largely helped by the experience of the

project worked in the time to come.

Page No.

3 / 61
PREFACE

Page No.

4 / 61
Contents

1. Introduction

2. Objectives

3. Scope

4. H/W & S/W Requirements

5. System Development life cycle(SDLC)


6. Phases of SDL
7. Project category.

8. Analysis (DFDs, ER Diagrams, Class Diagrams etc.)


9. Coding

10. Screens(forms)
11. Implementation & testingl
12. A complete structure which includes : Number of modules and their

description to provide an estimation of the.student's effort .


13. Data Structures as per the project requirements for all the modules.

14. Process Logic of each module.

15. Report generation.Conc

16. Security and Validation Check..

17. Conclusions

18. Bibliography
Page No.

5 / 61
HOTELMANAGEMENTSYSTEM

Page No.

6 / 61
INTRODUCTION

This project is aimed at developing a system that is an easy to operate user

friendly,economically priced software that commited to meet the all requirements

tomanagesmall,

process of Hotel Management System as simple as possible using Structured &

Modular technique& Menuorientedinterface. Ihavetried

todesignthesoftwaremediumandbigscalehotels..I havetried

my best to make the complicated in such a way that user may not have any difficulty

inusingthis

package & further expansion is possible without much effort. Even though I cannot

claim

that this work to be entirely exhaustive, the main purpose of my exercise is perform

each

Employee’ s activity in computerized way rather than manually which is time

consuming.

Page No.

7 / 61
I amconfidentthatthissoftwarepackagecanbereadilyusedby non-programming

personal avoiding human handled chance of error. This project is used by two types

of

users

11. Online Users.

ii. Administrator(management of theHotel).

Onlineusers can seetherequiredarticles ornews

Administrator can maintain daily updates in the hotel records. Administrator is

must be

an authorized user. He can further change the password. There is the facility for

password

recovery,logoutetc.

Page No.

8 / 61
The main aimof theentire activity is to automate the process of day to day activities

of

Hotel like Room activities, Admission of a New Customer, Assign a roomaccording

to

customer’ s demand, checkout of a computer and releasing the room and finally

compute

thebill etc.

The limited timeandresources have restricted us to incorporate, in this project, only

main activities that are performed in a HOTEL Management System, but utmost

carehas

beentakentomakethesystemefficientanduserfriendly. “ HOTELManagement

System” has been designed to computerized the following functions that are

performed

bythesystem:

RoomDetail Functions

Page No.

9 / 61
Openinga NewRoom

Modification toroomassigned

Check-in andcheck-outDetail Functions

Admissionof Newcustomer

Check-out of customer

Roomassigningrelatedtocustomer's need.

StatementofCustomerDetails

Check-in customer

Check-out customer

RoomDetails

Total numberof CustomersintheHotel

Individual customerReport

Page No.

10 / 61
OBJECTIVE

Duringthepastseveral decadespersonnel functionhas beentransformedfroma

relatively obscure record keeping staff to central and top level management

function.

Therearemanyfactors thathaveinfluencedthis transformationliketechnological

advances, professionalism, and general recognition of human beings as most

important

resources.

Acomputerbasedmanagementsystemisdesignedtohandleall theprimary

informationrequiredtocalculatemonthlystatements.Separatedatabaseis

maintainedtohandleall thedetailsrequiredforthecorrectstatement calculation

andgeneration.

Thisprojectintends tointroducemoreuserfriendlinessinthevarious activities

suchas recordupdation, maintenance,andsearching.

Page No.

11 / 61
Thesearchingof record hasbeenmadequitesimpleasall thedetailsof the

customercanbeobtainedbysimplykeyingin theidentificationof thatcustomer.

Similarly,recordmaintenanceandupdationcanalsobeaccomplishedby using

theidentification of thecustomerwithall thedetailsbeingautomatically

generated. Thesedetails arealsobeingpromptlyautomaticallyupdatedinthe

masterfilethuskeepingtherecordabsolutely up-to-date.

The entire information has maintained in the database or Files and whoever

wants

toretrievecan’ tretrieve,onlyauthorizationusercanretrievethenecessary

informationwhich can beeasilybeaccessiblefromthefile.

Themainobjectiveof theentireactivity is toautomatetheprocessof daytoday

activitiesof Hotel like:

1.Roomactivities,

2.Admission of a NewCustomer,

3.Assigna roomaccordingtocustomer's demand,

4.Checkout of a computer andreleasingtheroom

5.Finallycomputethebill etc.

Page No.

12 / 61
6.Packagesavailable.

7.Advanceonlinebookings.

8.OnlineCancellation.

9.ListofRegular customers.

10. Email facility.

11. Feedbacks

Thisprojecthavesomemorefeatures:

SystemConnectivity

Nodata duplication

NoPaperWorkRequired

TimeEfficient

Cost Efficient

Automaticdatavalidation

User friendlyenvironment

Datasecurityandreliability

Fastdata insertion &retrieval

Easyperformancecheck

Page No.

13 / 61
SCOPE

I have designed the given proposed system in the JSP to automate the process of

Hotels.

This project is useful for the authorities which keep track of all the users registered

ina

particular state .The authority can add hotel packages, room details, availability of

rooms, onlinebookingetc.

The following steps that give the detailed information of the need of proposed

systemare:

Performance: Duringpast several decades, therecords aresupposedtobemanually

handledforall activities.Themanual handlingof therecordistimeconsumingand

highly pronetoerror. Toimprovetheperformanceof theHotel ManagementSystem,

the computerized system is to be undertaken. This project is fully computerized

anduser

friendly even thatany of thememberscan seethereportandstatusof thecompany.


Page No.

14 / 61
Efficiency: The basic need of this website is efficiency. The website should be

efficient

so that whenever a new user submits his/her details the website is updated

automatically.

This record will be useful for other users instantly.Control: The complete control of

theprojectisunder thehandsof authorizedperson whohasthepassword to access

this project and illegal access is not supposed to deal with. All the control is under

theadministrator and theother members have therightsto just seethe records not

tochangeanytransaction or entry.

Security: Security is the main criteria for the proposed system. Since illegal access

maycorrupt thedatabase. Sosecurityhas tobegiveninthisproject.

ScopeofFutureApplication

Thisprojectcan beusedinthehotel afteraddingsomemoreuseful modulesinthe

projectforwhichhotel areprovidingservices.

Utmost care and back-up procedures must be established to ensure 100%

successful

implementationof thecomputerizedhotel system. In caseof systemfailure, the

Page No.

15 / 61
organization should be in a position to process the transaction with another

organization

orif theworstcomes to theworst,itshouldbein apositiontocompleteitmanually.

Scopeof Improvement

Now a days hotel are providing many other facilities, this project can also be

improved

with theimprovementintheHotels.

Utmost care and back-up procedures must be established to ensure 100%

successful

implementationof thecomputerizedbankingsystem.Incaseof systemfailure,the

organization should be in a position to process the transaction with another

organization

orif theworstcomes to theworst,itshouldbein apositiontocompleteitmanually.

Page No.

16 / 61
HardwareSpecification :

Processor : Intel Core i9-14900K (14th gen) desktop proces. …

Clock Speed : 2 GHz

RAM : 32 GB

Hard disk Capacity :1TB

Keyboard Keys. :101

SoftwareSpecification:-

FrontEnd : Python3.6orabove

BackEnd : Binary Fileof Python

OperatingSystem : Windows10orabove

Page No.

17 / 61
SYSTEM DEVELOPMENT LIFE CYCLE

The systems development life cycle is a project management technique

that divides complex projects into smaller, more easily managed segments or

phases. Segmenting projects allows managers to verify the successful

completion of project phases before allocating resource to subsequent

phases. Software development projects typically include initiation, planning,

design, development, testing, implementation, and maintenance phases.

However, the phases may be divided differently depending on the organization

involved. For example, initial project activities might be designated as request,

requirements-definition, and planning phases, or initiation, concept-development,

and planning phases. End users of the system under development should be

involved in reviewing the output of each phase to ensure the system is being

built phase to ensure thesystem is being built to deliver the needed functionality.

Page No.

18 / 61
Page No.

19 / 61
Phases Of System Development Life Cycle

The Initiation Phase begins when a business sponsor identifies a need or an

opportunity. The purpose of the Initiation Phase is to: 1>Identify and validate an

opportunity to improve business accomplishments of the organization or a

deficiency related to a business need.

2>Identify significant assumptions and constraints on solutions to that need.

Page No.

20 / 61
3>Recommend the exploration of alternative concepts and methods to satisfy

the need including questioning the need for technology, i.e., will a change in the

business process offer a solution?

4>Assure executive business and executive technical sponsorship.

The Sponsor designates a Project Manager and the business need is

documented in a Concept Proposal.

The Concept Proposal includes information about the business process and the

relationship to the Agency/Organization Infrastructure and the Strategic Plan.

A successful Concept Proposal results in a Project Management Charter which

outlines the authority of the project manager to begin the project.

Careful oversight is required to ensure projects support strategic business

objectives and resources are effectively implemented into an organization's

enterprise architecture. The initiation phase begins when an opportunity to add,

Page No.

21 / 61
improve, or correct a system is identified and formally requested through the

presentation of a business case. The business case should, at a minimum,

describe a proposal’ s purpose, identify expected benefits, and explain how the

proposed system supports one of the organization’ s business strategies.

The business case should also identify alternative solutions and detail as many

informational, functional, and network requirements as possible.

System Concept Development Phase

The System Concept Development Phase begins after a business need or

opportunity is validated by the Agency/Organization Program Leadership and

the Agency/Organization CIO.

The purpose of the System Concept Development Phase is to:

1>Determine the feasibility and appropriateness of the alternatives.

2>Identify system interfaces.

3>Identify basic functional and data requirements to satisfy the business need.

Page No.

22 / 61
Establish system boundaries, identify goals, objectives, critical success factors,

and performance measures.

4>Evaluate costs and benefits of alternative approaches to satisfy the basic

functional requirements .

5>Assess project risks.

6>Identify and initiate risk mitigation actions, and

7>Develop high-level technical architecture, process models, data models, and a

concept of operations.

This phase explores potential ,technical solutions within the context of the

business need.

It may include several trade-off decisions such as the decision to use COTS

software products as opposed to developing custom software or reusing

software components, or the decision to use an incremental delivery versus a

complete, one- time deployment. Construction of executable prototypes is

encouraged to evaluate technology to support the business process.

Page No.

23 / 61
The System Boundary Document serves as an important reference document to

support the Information Technology Project Request (ITPR) process. The ITPR

must be approved by the

State CIO before the project can move forward.

Page No.

24 / 61
Planning Phase

The planning phase is the most critical step in completing development,

acquisition, and maintenance projects. Careful planning, particularly in the early

stages of a project, is necessary to coordinate activities and manage project

risks effectively. The depth and formality of project plans should be

commensurate with the characteristics and risks of a given project.

Project plans refine the information gathered during the initiation phase by

further identifying the specific activities and resources required to complete a

project. A critical part of a project manager’ s job is to coordinate discussions

between user, audit, security, design, development, and network personnel to

identify and document as many functional, security, and network

requirements as possible. . During this phase, a plan is developed that

documents the approach to be used and includes a discussion of methods,

tools, tasks, resources, project schedules, and user input.

Personnel assignments, costs, project schedule, and target dates are


Page No.

25 / 61
established. . A Project Management Plan is created with components related to

acquisition planning, configuration management planning, quality assurance

planning, concept of operations, system security, verification and validation

and systems engineering management planning.

Page No.

26 / 61
Requirements Analysis Phase

This phase formally defines the detailed functional user requirements using high-

level requirements identified in the Initiation, System Concept, and Planning

phases. It also delineates the requirements in terms of data, system

performance, security, and maintainability requirements for the system. The

requirements are defined in this phase to a level of detail sufficient for systems

design to proceed.

They need to be measurable, testable, and relate to the business need or

opportunity identified in the Initiation Phase. The requirements that will be used

to determine acceptance of the system are captured in the Test and Evaluation

Master Plan. The purposes of this phase are to: 1>Further define and refine the

functional and data requirements and document them

in the Requirements Document,

2>Complete business process reengineering of the functions to be supported

(i.e., verify what information drives the business process, what information is

Page No.

27 / 61
generated, who generates it, where does the information go, and who processes

it), 3>Develop detailed data and process models (system inputs, outputs, and

the process. 4>Develop the test and evaluation requirements that will be used

to determine acceptable system performance.

Page No.

28 / 61
Design Phase

The design phase involves converting the informational, functional, and network

requirements identified during the initiation and planning phases into unified

design specifications that developers use to script programs during the

development phase. Program designs are c onstructed in various ways. Using a

top-down approach, designers first identify and link major program components

and interfaces, then expand design layouts as they identify and link smaller

subsystems and connections. Using a bottom-up approach, designers first

identify and link minor program components and interfaces, then expand design

layouts as they identify and link larger systems and connections.

Contemporary design techniques often use prototyping tools that build mock-up

designs of items such as application screens, database layouts, and system

architectures. End users, designers, developers, database managers, and

network administrators should review and refine the prototyped designs in an

Page No.

29 / 61
iterative process until they agree on an acceptable design. Audit, security, and

quality assurance personnel should be involved in the review and approval

process.

During this phase, the system is designed to satisfy the functional requirements

identified in the previous phase. Since problems in the design phase could be

very expensive to solve in the later stage of the software development, a variety

of elements are considered in the design to mitigate risk. These include:

Identifying potential risks and defining design features. Performing a security

risk assessment. Developing a conversion plan to migrate current data to the

new system. Determining the operating environment. Defining major

subsystems and their inputs and outputs. Allocating processes to resources.

Preparing detailed logic specifications for each software module.

The result is a draft System Design Document which captures the preliminary

design for the system. Everything requiring user input or approval is documented

and reviewed by the user. Once these documents have been approved by the

Agency CIO and Business Sponsor, the final System Design Document is created

to serve as the Critical/Detailed Design for the system.

Page No.

30 / 61
This document receives a rigorous review by Agency technical and functional

representatives to ensure that it satisfies the business requirements.

Concurrent with the development of the system design, the Agency Project

Manager begins development of the Implementation Plan, Operations and

Maintenance Manual, and the Training Plan.

Page No.

31 / 61
Development Phase

The development phase involves converting design specifications

into executable programs. Effective development standards include

requirements that programmers and other project participants discuss design

specifications before programming begins. The procedures help ensure

programmers clearly understand program designs and functional requirements.

Programmers use various techniques to develop computer programs. The large

transaction-oriented programs associated with financial institutions have

traditionally been developed using procedural programming

techniques.

Procedural programming involves the line-by-line scripting of logical instructions

that are combined to form a program. Effective completion of the previous

stages is a key factor in the success of the Development phase. The

Development phase consists of:

Page No.

32 / 61
1>Translating the detailed requirements anddesign into system components.

2>Testing individual elements (units) for usability.

3>Preparing for integration and testing of the IT system.

Page No.

33 / 61
PRINCIPLES OF SYSTEM ANALYSIS

1. Understand the problem before you begin to create the analysis model.

2. Develop prototypes that enable a user to understand how human machine

interaction will occur. 3. Record the origin of and the reason for every

requirement. 4. Use multiple views of requirements like building data, function

and behavioral models. 5. Work to eliminate ambiguity.

ENTITY RELATIONSHIP DIAGRAM (ERD)

Entity – Relationship Diagram: This depicts relationship between data objects.

The attribute of each data objects noted in the entity- relationship diagram can

be described using a data object description. Data flow diagram serves two

purposes: 1. To provide an indication of how data are transformed as they move

through the system. 2. To depict the functions that transformation the data flow.

Data Objects: A data object is a representation of almost any composite

Page No.

34 / 61
information that must be understood by the software. By composite information,

we mean something that has a number of different properties or attributes. A

data object encapsulates data only there is no reference within a data object to

operations that act on the data. Attributes: Attributes define the properties of a

data object and take on one of three different characteristics. They can be used

to: Name an instance of data object.

Describe the instance.

Make reference to another instance in other table.

Relationships: Data objects are connected to one another in a variety of

different ways. We can define a set of object relationship pairs that define the

relevant relationships.

Page No.

35 / 61
Page No.

36 / 61
Page No.

37 / 61
SOFTWARE DETAILS

Python

High-level programming language

Description

Python is an interpreted high-level general-purpose programming language. Its

design philosophy emphasizes code readability with its use of significant

indentation. Its language constructs as well as its object-oriented approach aim

to help programmers write clear, logical code for small and large-scale projects.

Python is a high-level, interpreted, interactive and object-oriented scripting

language. Python is designed to be highly readable. It uses English keywords

frequently where as other languages use punctuation, and it has fewer

syntactical constructions than other languages.

Python Features

Python's features include −

Easy-to-learn − Python has few keywords, simple structure, and a clearly


Page No.

38 / 61
defined syntax. This allows the student to pick up the language quickly.

Easy-to-read − Python code is more clearly defined and visible to the eyes.

Easy-to-maintain − Python's source code is fairly easy-to-maintain.

A broad standard library − Python's bulk of the library is very portable and cross-

platform compatible on UNIX, Windows, and Macintosh.

Interactive Mode − Python has support for an interactive mode which allows

interactive testing and debugging of snippets of code.

Portable − Python can run on a wide variety of hardware platforms and has the

same interface on all platforms.

Extendable − You can add low-level modules to the Python interpreter. These

modules enable programmers to add to or customize their tools to be more

efficient.

Databases − Python provides interfaces to all major commercial databases.

GUI Programming − Python supports GUI applications that can be created and

ported to many system calls, libraries and windows systems, such as Windows

Page No.

39 / 61
MFC, Macintosh, and the X Window system of Unix.

Scalable − Python provides a better structure and support for large programs

than shell scripting.

A function is a block of organized, reusable code that is used to perform a single,

related action. Functions provide better modularity for your application and a

high degree of code reusing. Simple rules to define a function in Python.

Function blocks begin with the keyword def followed by the function name and

parentheses ( ( ) ).

Any input parameters or arguments should be placed within these parentheses.

You can also define parameters inside these parentheses.

The first statement of a function can be an optional statement - the

documentation string of the function or docstring.

The code block within every function starts with a colon (:) and is indented.

The statement return [expression] exits a function, optionally passing back an

expression to the caller. A return statement with no arguments is the same as

return None

Page No.

40 / 61
Features of using Functions:

The program is easier to understand. : Main block of program becomes

compact as the code of functions is not the part of it, thus is easier to read and

understand.

Redundant code is at one place, so making is easier. : Instead of writing code

again when we need to use it more than once, we can write the code in the form

of a function and call it more than once. If we later need to change the code , we

change it in one place only. Thus it saves our time also.

Reusable function can be put in a library in modules. : We can store the reusable

functions in the form of modules. These modules can be imported and used

when needed in other programs.

Page No.

41 / 61
Microsoft Word

Microsoft Word is a widely used commercial word processor designed by

Microsoft. Microsoft Word is a component of the Microsoft Office suite of

productivity software, but can also be purchased as a stand-alone product.

Microsoft Word was initially launched in 1983, and has since been revised

numerous times. It is available for both Windows and Apple operating systems

Page No.

42 / 61
Functions Created

Home()- Function to display the project’ s main screen i.e. the home page of

the project or you can say the main menu for selecting the desired operation to

perform.

Date(str)- Function to validate date entered by the user/customer.

Booking()- Function for booking room in hotel by entering user/customer details.

Room_Info()- Function to provide users/customers with hotel rooms

information(i.e. about room amenities).

Roomservie()- Function for room service which provides user/customer with the

restaurant’ s menu card to order food at the room.

Payment()- Function for payment of hotel room and restaurant bill generation at

the time of check-out.

Record()- Function for keeping records of customers stayed in the hotel.

Page No.

43 / 61
CODING

#PAYMENTFUNCTION
def Payment():

ph=str(input("import random"))
importdatetime

#Global ListDeclaration
name= []
phno=[]
add=[]
checkin=[]
checkout=[]
Page No.

44 / 61
room=[]
price=[]
rc=[]
p= []
roomno=[]
custid= []
day= []

#Global VariableDeclaration

i=0

#HomeFunction
def Home():

print("\n\n\n\t\t\t\t\t\tWELCOMETO HOTELALCORE\n")
print("\t\t\t\t\t____________________________________________________")
print("\n\t\t\t1Booking\n")
print("\t\t\t 2RoomsInfo\n")
print("\t\t\t 3RoomService(MenuCard)\n")
print("\t\t\t 4Payment\n")
print("\t\t\t 5Record\n")
print("\t\t\t 0Exit\n")

ch=int(input("->"))

ifch ==1:
print("")
Booking()

elif ch ==2:
print("")
Rooms_Info()

Page No.

45 / 61
elif ch ==3:
print("")
restaurant()

elif ch ==4:
print("")
Payment()

elif ch ==5:
print("")
Record()

else:
exit()

#Function usedin booking

def date(c):

ifc[2] >= 2019andc[2]<= 2030:

if c[1] != 0andc[1]<= 12:

if c[1]==2andc[0]!= 0andc[0]<= 31:

if c[2]%4== 0andc[0]<= 29:


pass

elifc[0]<29:
pass

else:
print("Invaliddate\n")
name.pop(i)
Page No.

46 / 61
phno.pop(i)
add.pop(i)
checkin.pop(i)
checkout.pop(i)
Booking()

#ifmonth is odd& less thanequal


#to7th month
elif c[1] <=7andc[1]%2!= 0andc[0]<= 31:
pass

#ifmonth is even & lessthan equal to7th


#monthandnot 2ndmonth
elif c[1] <=7andc[1]%2==0andc[0] <=30andc[1]!=2:
pass

#ifmonth is even & greater thanequal


#to8th month
elif c[1] >= 8andc[1]%2== 0andc[0] <= 31:
pass

#ifmonth is odd& greaterthan equal


#to8th month
elif c[1]>=8andc[1]%2!=0andc[0]<=30:
pass

else:
print("Invaliddate\n")
name.pop(i)
phno.pop(i)
add.pop(i)
checkin.pop(i)
checkout.pop(i)
Page No.

47 / 61
Booking()

else:
print("Invaliddate\n")
name.pop(i)
phno.pop(i)
add.pop(i)
checkin.pop(i)
checkout.pop(i)
Booking()

else:
print("Invaliddate\n")
name.pop(i)
phno.pop(i)
add.pop(i)
checkin.pop(i)
checkout.pop(i)
Booking()

#Bookingfunction
def Booking():

#usedglobal keywordto
#useglobal variable'i'
global i
print("BOOKINGROOMS")
print("")

while1:
n= str(input("Name: "))
p1= str(input("PhoneNo.: "))
a= str(input("Address: "))
Page No.

48 / 61
#checksif anyfieldis not empty
if n!=""andp1!=""and a!="":
name.append(n)
add.append(a)
break

else:
print("\tName,Phoneno. &Address cannot beempty..!!")

cii=str(input("Check-In DateDD/MM/YYYY: "))


checkin.append(cii)
cii=cii.split('/')
ci=cii
ci[0]=int(ci[0])
ci[1]=int(ci[1])
ci[2]=int(ci[2])
date(ci)

coo=str(input("Check-OutDateDD/MM/YYYY: "))
checkout.append(coo)
coo=coo.split('/')
co=coo
co[0]=int(co[0])
co[1]=int(co[1])
co[2]=int(co[2])

#checksif check-outdatefallsafter
#check-indate
if co[1]<ci[1] andco[2]<ci[2]:

print("\n\tErr..!!\n\tCheck-Outdatemustfall afterCheck-In\n")
name.pop(i)
add.pop(i)
Page No.

49 / 61
checkin.pop(i)
checkout.pop(i)
Booking()
elif co[1]==ci[1]and co[2]>=ci[2] andco[0]<=ci[0]:

print("\n\tErr..!!\n\tCheck-Outdatemustfall afterCheck-In\n")
name.pop(i)
add.pop(i)
checkin.pop(i)
checkout.pop(i)
Booking()
else:
pass

date(co)
d1= datetime.datetime(ci[2],ci[1],ci[0])
d2= datetime.datetime(co[2],co[1],co[0])
d=(d2-d1).days
day.append(d)

print("----SELECTROOMTYPE----")
print("1.StandardNon-AC")
print("2.StandardAC")
print("3.3-BedNon-AC")
print("4.3-BedAC")
print(("\t\tPress 0forRoomPrices"))

ch=int(input("->"))

#if-conditionstodisplayallotedroom
#typeandit'sprice
if ch==0:
print("1.StandardNon-AC- Rs.3500")
print("2.StandardAC -Rs. 4000")
Page No.

50 / 61
print("3.3-BedNon-AC- Rs. 4500")
print("4.3-BedAC- Rs.5000")
ch=int(input("->"))
if ch==1:
room.append('StandardNon-AC')
print("RoomType-StandardNon-AC")
price.append(3500)
print("Price-3500")
elif ch==2:
room.append('StandardAC')
print("RoomType-StandardAC")
price.append(4000)
print("Price-4000")
elif ch==3:
room.append('3-BedNon-AC')
print("RoomType-3-BedNon-AC")
price.append(4500)
print("Price-4500")
elif ch==4:
room.append('3-BedAC')
print("RoomType-3-BedAC")
price.append(5000)
print("Price-5000")
else:
print("Wrongchoice..!!")

#randomly generatingroomno. andcustomer


#idforcustomer
rn= random.randrange(40)+300
cid= random.randrange(40)+10

#checksif allotedroomno. &customer


Page No.

51 / 61
#idalreadynotalloted
whilernin roomnoorcidin custid:
rn= random.randrange(60)+300
cid=random.randrange(60)+10

rc.append(0)
p.append(0)

if p1notinphno:
phno.append(p1)
elif p1in phno:
forn in range(0,i):
if p1==phno[n]:
if p[n]==1:
phno.append(p1)
elif p1in phno:
forn in range(0,i):
if p1==phno[n]:
if p[n]==0:
print("\tPhoneno. alreadyexistsandpaymentyetnotdone..!!")
name.pop(i)
add.pop(i)
checkin.pop(i)
checkout.pop(i)
Booking()
print("")
print("\t\t\t***ROOMBOOKED SUCCESSFULLY***\n")
print("RoomNo.- ",rn)
print("CustomerId-",cid)
roomno.append(rn)
custid.append(cid)
i=i+1
n=int(input("0-BACK\n ->"))
if n==0:
Page No.

52 / 61
Home()
else:
exit()

#ROOMSINFO
def Rooms_Info():
print(" ------HOTELROOMSINFO ------")
print("")
print("STANDARD NON-AC")
print("---------------------------------------------------------------")
print("Roomamenities include: \n\t\t1DoubleBed, Television,Telephone,")
print("\t\tDouble-Door Cupboard,\n\t\t1Coffeetablewith2sofa, Balcony and")
print("\t\tan attachedwashroomwith hot/coldwater.\n")
print("STANDARD NON-AC")
print("---------------------------------------------------------------")
print("Roomamenities include: \n\t\t1DoubleBed, Television,Telephone,")
print("\t\tDouble-Door Cupboard,\n\t\t1Coffeetablewith2sofa, Balcony and")
print("\t\tan attachedwashroomwith hot/coldwater+Window/SplitAC.\n")
print("3-BedNON-AC")
print("---------------------------------------------------------------")
print("Roomamenities include: 1DoubleBed+1SingleBed, Television,")
print("Telephone,a Triple-Door Cupboard,1Coffeetablewith2sofa,1")
print("Sidetable, Balcony withanAccenttablewith2Chair andan")
print("attachedwashroomwith hot/coldwater.\n")
print("3-BedAC")
print("---------------------------------------------------------------")
print("Roomamenities include: 1DoubleBed+1SingleBed, Television,")
print("Telephone,a Triple-Door Cupboard,1Coffeetablewith2sofa,")
print("1Sidetable, Balcony with anAccenttablewith2Chair andan")
print("attachedwashroomwith hot/coldwater+ Window/SplitAC.\n\n")
print()
n=int(input("0-BACK\n ->"))
ifn==0:
Home()
Page No.

53 / 61
else:
exit()

#RESTAURANTFUNCTION
def restaurant():
ph=int(input("CustomerId: "))
global i
f=0
r=0
forn inrange(0,i):
if custid[n]==phandp[n]==0:
f=1
print("-------------------------------------------------------------------------")
print(" Hotel ALCORE")
print("-------------------------------------------------------------------------")
print(" Menu Card")
print("-------------------------------------------------------------------------")
print("\nBEVARAGES 26Dal Fry................140.00")
print("---------------------------------- 27Dal Makhani............150.00")
print("1 RegularTea.............20.00 28Dal Tadka.............. 150.00")
print("2 Masala Tea.............. 25.00")
print("3 Coffee..................25.00 ROTI")
print("4 ColdDrink..............25.00 ----------------------------------")
print("5 BreadButter............ 30.00 29PlainRoti.............. 15.00")
print("6 BreadJam............... 30.00 30ButterRoti.............15.00")
print("7 Veg.Sandwich........... 50.00 31Tandoori Roti...........20.00")
print("8 Veg.Toast Sandwich..... 50.00 32ButterNaan............. 20.00")
print("9 CheeseToastSandwich... 70.00")
print("10GrilledSandwich........70.00 RICE")
print(" ----------------------------------")
print("SOUPS 33PlainRice..............90.00")
print("---------------------------------- 34Jeera Rice.............. 90.00")
print("11TomatoSoup............110.00 35VegPulao..............110.00")
print("12Hot& Sour............. 110.00 36PeasPulao............. 110.00")
Page No.

54 / 61
print("13Veg. NoodleSoup.......110.00")
print("14SweetCorn............. 110.00 SOUTHINDIAN")
print("15Veg. Munchow........... 110.00 ----------------------------------")
print(" 37PlainDosa.............100.00")
print("MAINCOURSE 38Onion Dosa.............110.00")
print("---------------------------------- 39Masala Dosa............ 130.00")
print("16Shahi Paneer...........110.00 40PaneerDosa............ 130.00")
print("17Kadai Paneer........... 110.00 41RiceIdli.............. 130.00")
print("18Handi Paneer...........120.00 42Sambhar Vada...........140.00")
print("19PalakPaneer...........120.00")
print("20Chilli Paneer.......... 140.00 ICECREAM")
print("21MatarMushroom......... 140.00 ----------------------------------")
print("22MixVeg................ 140.00 43Vanilla.................60.00")
print("23JeeraAloo.............140.00 44Strawberry..............60.00")
print("24Malai Kofta............ 140.00 45Pineapple............... 60.00")
print("25AlooMatar.............140.00 46ButterScotch........... 60.00")
print("Press 0-toend")
ch=1
while(ch!=0):

ch=int(input("->"))

#if-elif-conditions toassign item


#prices listed in menu card
if ch==1orch==31or ch==32:
rs=20
r=r+rs
elifch<=4and ch>=2:
rs=25
r=r+rs
elifch<=6and ch>=5:
rs=30
r=r+rs
elifch<=8and ch>=7:
Page No.

55 / 61
rs=50
r=r+rs
elifch<=10andch>=9:
rs=70
r=r+rs
elif(ch<=17andch>=11) orch==35orch==36or ch==38:
rs=110
r=r+rs
elifch<=19andch>=18:
rs=120
r=r+rs
elif(ch<=26andch>=20) orch==42:
rs=140
r=r+rs
elifch<=28andch>=27:
rs=150
r=r+rs
elifch<=30andch>=29:
rs=15
r=r+rs
elifch==33orch==34:
rs=90
r=r+rs
elifch==37:
rs=100
r=r+rs
elifch<=41andch>=39:
rs=130
r=r+rs
elifch<=46andch>=43:
rs=60
r=r+rs
elifch==0:
pass
Page No.

56 / 61
else:
print("WrongChoice..!!")
print("Total Bill: ",r)

#updatesrestaurant chargesandthen
#appendsin'rc' list
r=r+rc.pop(n)
rc.append(r)
else:
pass
iff == 0:
print("InvalidCustomer Id")
n=int(input("PhoneNumber: "))
#global i
f=0

forn inrange(0,i):
if ph==phno[n] :

#checksif paymentis
#notalreadydone
if p[n]==0:
f=1
print(" Payment")
print(" --------------------------------")

#hotel program
print("\n\n\n\t\t\t\tWELCOMETOHOTEL MANAGEMENTSYSTEM\n")
print("\t\t\t\t---------------------------------------------------------")
print("\n\t\t\t\tPreparedbyKrish Kumar, StdXII A,Roll 18\n\n")
print("\t\t\t\t--------------------------------")
uname=input("\n\t\t\t\tEnterUserName:")
Pawd=input("\t\t\t\tEnterPassword: ")
Page No.

57 / 61
print("\t\t--------------------------------")
if uname=="krish"andPawd=="KRK@123":
Home()
else:
print("InvalidUser nameandpassword")

#PAYMENTFUNCTION

Page No.

58 / 61
Page No.

59 / 61
Conclusion:

The conclusion of this project is A Hotel management system is a computerized

management system. This system keeps the records of hardware assets

besides software of this organization. The proposed system will keep a track of

Workers, Residents, Accounts and generation of report regarding the present

status. This project has GUI based software that will help in storing, updating

and retrieving the information through various user-friendly menu-driven

modules. The project “ Hotel Management System” is aimed to develop to

maintain the day-to-day state of admission/Vacation of Residents, List of

Workers, payment details etc. Main objective of this project is to provide solution

for hotel to manage most there work using computerized process. This software

application will help admin to handle customer’ s information, room allocation

details, payment details, billing information.etc.

Page No.

60 / 61
Bibliography
▪ Faculty guidance: Mr, Pradeep Chandra Mohanty

▪ Book Guidance:

▪ Computer science in Python by Sumita Arora

▪ Website Guidance:

▪ www.google.co.in

Page No.

61 / 61

You might also like