0% found this document useful (0 votes)
49 views19 pages

Hotel Management System

Uploaded by

kashizs123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views19 pages

Hotel Management System

Uploaded by

kashizs123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

A PROJECT

ON

HOTEL MANAGEMENT

Submitted to
Central Board of Secondary Education,
New Delhi

Submitted By:- Project Guide:-


Name:
Board Roll No:

N.C.JINDAL PUBLIC SCHOOL


HOTEL MANAGEMENT

Tools Used

Front End:- PYTHON


Back End:- CSV FILE
CERTIFICATE

This to certify that the project report entitled “SOFTWARE FOR


HOTEL MANAGEMENT ” submitted by
………………………………… during the academic year 2024-
2025 is a piece of work conducted under my supervision and
guidance. The data sources have been duly acknowledged.

SUPERVISED BY

(Principal) (Project Guide)


PREFACE

The computers have gained a lot of importance in the past five


decades. Most of our day-to-day jobs are being influenced by the
use of computers. Now a day, computers are used for performing
almost every function, which were performed by humans in the past.
In some areas such as science and technology, targets can’t be
achieved without the use of computers. The characteristics that
make the computer so important include its extra ordinary speed,
large storage capacity, accuracy and consistency.

Today computers play a great role in various industries and a


large number of industries are using computers for various
application such as maintaining cashbook, sales book, purchase
book and other books of accounts. Computers can also be used for
the designing of various products. Computers provide many options
for the designing of products.

The analysis of the project has been undertaken with utmost


sincerity and honesty and we will be extremely satisfied if the effort
is appreciated.
INDEX

1. Acknowledgement
2. Function used
3. Modules used
4. Requirements Analysis
5. Feasibility Study
6. Coding
7. Output Screen
8. System Specifications
9. Bibliography
ACKNOWLEDGEMENT

We take this opportunity to express our profound sense of


gratitude and respect to all those who helped us throughout this
project.

we owe our regards to Mr. Deepak Dua Principal of our School


for his cooperation and valuable support and for giving us the
opportunity to undertake this project work and providing the
necessary infrastructure.

we would like to express our heartfelt thanks to our revered


teacher Mrs. Vijaya laxmi gupta for her valuable guidance,
encouragement and support. This project is her visualization and
owes a lot of its functionality to her.
FUNCTION USED
1.PRINT()
2. INPUT()
3.WRITEROW()
4.OPEN()
5.CLOSE()

MODULES USED
1.OS()
2.CSV()
3.RANDOM()
4.MATH()
BENEFITS

1.Less Paper Work

The paper work is reduced to minimal level. Computer prepares


the lists of
customers.

2.No Manual Work.

There is no manual work. All the processes are done through


computer.

3.Record of Hotels.

There is record of all the Hotels who got registered.

4.Register Maintenance is Easier

Register can now easily be maintained by producing a report


with a format of adding
Hotels’ records .

5.Data Is Not Scattered

Data is now stored at one place. Any information regarding


anything can be easily
available to the user.

6.User-friendly Software

The software is be menu-driven and is very easy to use.

7.Flexibility

The system is more flexible than the manual system being used
presently.
8.Beneficial

The system is easy to use and reduces the user’s workload a lot.
It provides timely
and accurate information and there is automatic generation of
reports.
FEASIBILITY STUDY

During the course of completion of this project work, the complete


analysis of proposed system was done. In the analysis task, a
complete care about the feasibility of the proposed system was taken.
The following feasibility analyses were carried out during the course
of this project work on call management system for customer care:

1. Economical feasibility
2. Technical feasibility
3. Operational feasibility

Economical Feasibility:-
Economic analysis is the most frequently used method for
evaluating the effectiveness of a candidate system. The proposed
system is economically feasible because the benefits and the savings
that are expected from a candidate system outweigh the cost
incurred. In this case we are getting the intangible benefits in terms of
low cost of maintenance of data, less redundancy and getting the
quick results.
Technical Feasibility:-

The existing Hardware and Software facilities support the


proposed system. Computer and storage media are available and
software can be developed.

Hardware configuration:
a) Processor : i3
b) Memory : 2 GB RAM
c) HD capacity : 1 TB

Software configuration:-
a) Operating system : Windows 10
b) Back end : csv files
c) Front end : Python
There is nothing which is not technically feasible.

Operational feasibility:-

As in the case of present system the entire work is being done


manually. So the data being scattered, information retrieval becomes
difficult and maintaining database is also very tedious. In case of
proposed system, entire work will be done automatically. So the
above details regarding the feasibility study show that the design of
the proposed system is very effective.
CODING

import os
import csv
def newCustomer():
print("Add a new Customer Record")
print("=========================")
f=open('hotel.csv','a',newline=' \r\n')
s=csv.writer(f)
Customerid=input('Enter Customer id=')
Customername=input('Enter Customer name=')
roomno=input('Enter Room No=')
price=float(input('Enter price='))
persons=float(input('Enter number of persons='))
print("---------------------------------------------------- ")
rec=[Customerid,Customername,roomno,price,persons]
s.writerow(rec)
f.close()
print("Customer Record Saved")
input("Press any key to continue..")

def editCustomer():
print("Modify a Customer Record")
print("=========================")
f=open('hotel.csv','r',newline=' \r\n')
f1=open('temp.csv','w',newline=' \r\n')
f1=open('temp.csv','a',newline=' \r\n')
r=input('Enter Customerid whose record you want to modify=')
s=csv.reader(f)
s1=csv.writer(f1)
for rec in s:
if rec[0]==r:
print("-------------------------------")
print("Customer id=",rec[0])
print("Customer Name=",rec[1])
print("Room No=",rec[2])
print("Price=",rec[3])
print("Number of persons=",rec [4])
print("------------------------------- ")

choice=input("Do you want to modify this Customer


Record(y/n)=")
if choice=='y' or choice=='Y':
print("------------------------------------------ --------
--")
Customerid=input('Enter new Customer id(if required)=')
Customername=input('Enter new Customer name(if
required)=')
roomno=input('Enter new Room No=')
price=float(input('Enter pr ice='))
persons=float(input('Enter number of persons='))
print("--------------------------------------------------
--")
rec=[Customerid,Customername,roomno,price,persons]
s1.writerow(rec)
print("Customer Record Modified")
else:
s1.writerow(rec)
else:
s1.writerow(rec)
f.close()
f1.close()
os.remove("hotel.csv")
os.rename("temp.csv","hotel.csv")

input("Press any key to continue..")

def delCustomer():
f=open('hotel.csv','r',newline=' \r\n')
f1=open('temp.csv','w',newline=' \r\n')
f1=open('temp.csv','a',newline=' \r\n')
r=input('Enter Customerid whose record you want to delete')
s=csv.reader(f)
s1=csv.writer(f1)
for rec in s:
if rec[0]==r:
print("------------------------------- ")
print("Customer id=",rec[0])
print("Customer Name=",rec[1])
print("Room No=",rec[2])
print("Price=",rec[3])
print("Number of persons=",rec[4])
print("------------------------------- ")
choice=input("Do you want to delete this Customer
Record(y/n)")
if choice=='y' or choice=='Y':
pass
print("Customer Record Deleted....")
else:
s1.writerow(rec)
else:
s1.writerow(rec)
f.close()
f1.close()
os.remove("hotel.csv")
os.rename("temp.csv","hotel.csv")

input("Press any key to continue..")

def searchCustomer():
print("Search a Customer Record")
print("=====================")
f=open('hotel.csv','r',newline=' \r\n') #Remove new line character
from output
r=input('Enter Customerid you want to s earch')
s=csv.reader(f)
for rec in s:
if rec[0]==r:
print("------------------------------- ")
print("Customer id=",rec[0])
print("Customer Name=",rec[1])
print("Room No=",rec[2])
print("Price=",rec[3])
print("Number of persons=",rec[4])
print("------------------------------- ")
f.close()
input("Press any key to continue..")
def listofcustomers():

print("============================================== ====================
===")
print(" List of All Customers")
print("==================================================================
===")
f=open('hotel.csv','r',newline=' \r\n')
s=csv.reader(f)
i=1
for rec in s:
print(rec[0],end="\t\t")
print(rec[1],end="\t\t")
print(rec[2],end="\t\t")
print(rec[3],end="\t\t")
print(rec[4])
i+=1
f.close()
print("--------------------------------------------------------------
--------")
input("Press any key to con tinue..")

def menu():
choice=0
while choice!=6:
print("\n")
print("|-------------------------- |")
print("| Hotel Management System |")
print("| ------------------------- |")
print('\n')
print("########################")
print(" Menu")
print("########################")
print("1. Add a new Customer Record")
print("2. Modify Existing Customer ")
print("3. Delete Existing Customer ")
print("4. Search a Customer")
print("5. List all Customers")
print("6.Exit")
print("------------------------------- ")
choice=int(input('Enter your choice'))
print("------------------------------- ")
if choice==1:
newCustomer()
elif choice==2:
editCustomer()
elif choice==3:
delCustomer()
elif choice==4:
searchCustomer()
elif choice==5:
listofcustomers()
elif choice==6:
print("Software Exited..")
break
menu()
BIBLIOGRAPHY

REFERENCES
Preeti Arora(2024).Computer Science with python(class 12).
Python4CSIP- https://python4csip.com/
OUTPUT SCREENS

You might also like