Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

HOTEL MANAGEMENT PROJECT Print Final-1 Conv

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

1

Golden International School

ACADEMIC YEAR : 2022-23

INVESTIGATERY PROJECT ON

TOTAL INTERNAL REFLECTION

NAME : Atharva Maheswari

CLASS : XII - A
SUBJECT : PHYSICS
SUB CODE
: 083

PROJECT GUIDE: Mr. Jitendra Khurana

Golden International School

Indore,Madhya Pradesh

Golden International Schoo


CERTIFICATE

This is to certify that Class : XII

A has successfully completed the project Work entitled

HOTEL MANAGEMENT SYSTEM in the subject

Computer Science (083) laid down in the regulations of

CBSE in Golden International School.

Name : Priyanshu Gautam Submitted To : Sudhir Kalawat

Class : XII A (PGT) C.S


3

Contents

1. Introduction of the Project.


2. Acknowledgement.
3. Python Coding.
4. Output of the Project.
5. References.
4

ACKNOWLEDGEMENT

Apart from the efforts of me, the success of any project depends largely on the
encouragement and guidelines of many others. I take this opportunity to express my
gratitude to the people who have been instrumental in the successful completion of
this project.

I express deep sense of gratitude to almighty God for giving me strength for the
successful completion of the project.

I express my heartfelt gratitude to my parents for constant encouragement while


carrying out this project.

I gratefully acknowledge the contribution of the individuals who contributed in


bringing this project up to this level, who continues to look after me despite my flaws,

I express my deep sense of gratitude to the luminary The Principal, Golden


International School who has been continuously motivating and extending their
helping hand to us.I express my sincere thanks to her for constant encouragement
and the guidance provided during this project

I am overwhelmed to express my thanks to my group for providing me an


infrastructure and moral support while carrying out this project in the school.

My sincere thanks to Mr. Sudhir Kalawat, Project In-charge, A guide, Mentor


all the above a friend, who critically reviewed my project and helped in solving each
and every problem, occurred during implementation of the project.

The guidance and support received from all the members who contributed and
who are contributing to this project, was vital for the success of the project. I am
grateful for their constant support and help.
5

Introduction of the Project

We the students of CLASS XII A of Golden


International School have been assigned the work
of HOTEL MANAGEMENT SYSTEM. To perform this
task the students were divided into the group of
students named as Mahadev, Atharv and
Priyanshu. We have been asked to work on the
same project of Hotel Management System.
It Starts with Options of –

1.About the Project


2.Show all Customers Details
3.Add new customer Detail using Location
4.Add new customer Detail with Input
5.Show Details of customers with New Column
Names
6.Show Customer Detail By Name
7.Show Types of Room Available
6

8.Ask Customer's choice of room and calculate


charges according to stay
9.Rent Increment
10.List of Charges in Table Laundry
11.Add Details of Items and Charges in Laundry
12.Show Laundry Bill
13.Delete Column Address
14.Add Details of Games and Charges
15.Show all Games List
16.Game Bill
17.Costliest Bill
18.Minimum Charges of a Game
19.Add Details of food items available in a list
20.Show Menu of the Restaurant
21.Restaurant Bill
7

Source Code:

import matplotlib as plt


import pandas

def about():
print("The Project is developed on Hotel
Management System.It contains 21 Options.In
the Project 5 CSV files are
used...Customers,Laundry,Room
Type,Games,Restaurant ")

def no_index():
print('Display Customers Details without
Index')
print() df=pandas.read_csv(r"C:\Users\
lenovo\Docu
ments\Customer Details.csv",index_col=0)
print('without index')
print(df)

def new_customer():
print('Adding New Customer Details in
File Doctor')
df=pandas.read_csv(r"C:\Users\lenovo\Docu
ments\Customer Details.csv",index_col=0)
df.at['5',:]=['Geeta','50,Karol
Bagh',124122,'14-10-2022','17-10-2022','3']
print(df)
8

def new_cust():
print('Adding New Customer in File ')

df=pandas.read_csv(r"C:\Users\lenovo\Docu
ments\Customer Details.csv",index_col=0)
print(df)

a=(input("Enter Name of the Customer: "))


b=(input("Enter the Address: "))
c=int(input("Enter Mobile Number: "))
d=(input("Enter Date of Check In: "))
e=(input("Enter Date of Check Out: "))
f=(int(input("Enter Duration of Stay:
")))
df.loc[a]=[b,c,d,e,f]
print(df)

def new_colnam():
print("Previous Column Names: ")
df=pandas.read_csv(r"C:\Users\lenovo\Docu
ments\Customer Details.csv",index_col=0)
print(df)
print()
print('Display Deails of Customer with
new names')
df=pandas.read_csv(r"C:\Users\lenovo\Docu
ments\Customer
Details.csv",skiprows=1,names=['customer_name
'])
print(df)

def sort_customer():
9

print('Sorting Customer Names and


Details in Ascending Order')
df=pandas.read_csv(r"C:\Users\lenovo\
Documents\Customer Details.csv",index_col=0)
df=df.sort_values('name')
print(df)

def show_roomtype():
print("Show types of Room Available")
df=pandas.read_csv(r"C:\Users\lenovo\Docu
ments\roomtype.csv",index_col=0)
print('without index')
print()
print(df)

def roomrent():
print("Room Amentities include: 1 Double
Bed, Telephone, Double Board Cupboard, 1
Coffee Table with 2 Sofa, Balcony with
attached Washroom with Hot/Cold water")
print(" WE HAVE FOLLOWING ROOMS FOR
YOU ")
print("1.Single Room RS 2000 Per
Night") print("2.Double Room RS 3000
Per Night") print("3.Triple Room RS
4000 Per Night") print("4.King Room RS
8000 Per Night") x=int(input("Enter YOUR
CHOICE Please -->
"))
n=int(input("How many Nights you Wanna
Stay: ? "))
if (x==1):
print("You Have Chosen Single Room")
s=2000*n
10

elif (x==2):
print("You have Chosen Double Room")
s=3000*n
elif (x==3):
print("You Have Chosen Triple Room")
s=4000*n
elif (x==4):
print("You Have Chosen King Room")
s=8000*n
else:
print("PLEASE CHOOSE A ROOM! ")
print("Your Room Rent is = ",s,"\n Thank
You Visit Again")

def rent_inc():
print('Previous Rent of Rooms')
print()
df=pandas.read_csv(r"C:\Users\lenovo\Docu
ments\roomtype.csv",index_col=0)
print(df)
print()
print('Increase Rent by 500')
print()
df['rent']+=500
print(df)

def laundry(): df=pandas.read_csv(r"C:\Users\


lenovo\
Documents\laundry.csv",index_col=0)
print('Laundry Item charges without
index')
print()
print(df)
11

def add_laundry():
print("Adding New ITEM to be washed in
File Laundry")
print() df=pandas.read_csv(r"C:\Users\
lenovo\Docu
ments\laundry.csv",index_col=0)
df.at['7',:]=['7','Gents Suit',300]
print(df)

def lbill():
print("WE CHARGE THE FOLLOWING RATE FOR
LAUNDRY--> ")
print("1.Shirt RS 75 1 Piece ")
print("2.Trouser RS 100 1 Piece ")
print("3.Ladies Suit RS 150 1 Piece")
print("4.Saree RS 200 1 Piece")
print("5.Others RS 200 1 Piece")
x=int(input("Enter your Choice of Cloth
PLEASE-->"))
n=int(input("How many pieces of cloth you
want to get washed: "))
if(x==1):
print("You want to get your shirt
washed")
s=75*n
elif(x==2):
print("You want to get your Trouser
washed")
s=100*n
elif(x==3):
print("You want to get your Suit
washed")
12

s=150*n
elif(x==4):
print("You want to get Other Cloth
washed")
s=200*n
else:
print("Please Choose a Piece of
Cloth")
print("Your Laundry Charges are
RS",s,"\n")

def delete_col():
print('Delete Column Address from
customers')
print() df=pandas.read_csv(r"C:\Users\
lenovo\Docu
ments\Customer Details.csv",index_col=0)
print(df)
print()
print()
del df['address']
print(df)

def add_game():
print("Adding New Game in File games")
print() df=pandas.read_csv(r"C:\Users\
lenovo\Docu
ments\games.csv")
print(df)
print()
print("Show New Games List")
df.at['6',:]=['6','Swimming',100]
print(df)
13

def show_game():
print("All Games Available")
print()
df=pandas.read_csv(r"C:\Users\lenovo\Docu
ments\games.csv")
print(df)

def gamebill():
print("******GAME MENU******")
df=pandas.read_csv(r"C:\Users\lenovo\Docu
ments\games.csv")
print(df)
g=int(input("Enter Your Choice of Game:
"))
if(g==1):
h=int(input("No of Hours: "))
s=60*h
elif(g==2):
h=int(input("No of Hours: "))
s=80*h
elif(g==3):
h=int(input("No of Hours: "))
s=70*h
elif(g==4):
h=int(input("No.of Hours: "))
s=90*h
elif(g==5):
h=int(input("No of Hours: "))
s=80*h
else:
print("Invalid Option")
print("Total Game Bill=RS",s,"\n")
14

def maxchargegame(): df=pandas.read_csv(r"C:\


Users\lenovo\Docu
ments\games.csv")
print(df)
print()
print("Costliest Game Is: ")
print(df.gamename.max())

def minchargegame(): df=pandas.read_csv(r"C:\


Users\lenovo\Docu
ments\games.csv")
print(df)
print()
print("Minimum Charge of a Game")
print(df.charges.min())

def add_restaurant():
print("Adding New Dish in File
Restaurant") df=pandas.read_csv(r"C:\Users\
lenovo\Docu
ments\restaurant.csv")
df.at['6','Juice',90]
print(df)

def show_restaurant():
print()
print(" MENU")
df=pandas.read_csv(r"C:\Users\lenovo\Docu
ments\restaurant.csv")
print(df)

def restaurantbill():
15

print('All Food Items Available')


df=pandas.read_csv(r"C:\Users\lenovo\Docu
ments\restaurant.csv")
print(df)
print()

c=int(input("Order your Item Number"))


d=int(input("Enter the quantity"))
if(c==1):
s=20*d
elif(c==2):
s=10*d
elif(c==3):
s=90*d
elif(c==4):
s=110*d
elif(c==5):
s=150*d
else:
print("Invalid Option")

print("Total Food Bill is RS",s,"\n")

def menu():
print()
print("**********************************
**********************")
print(" Hotel Management
Project ")
print("1.About the Project")
print("2.Show all Customers Details")
print("3.Add new customer Detail using
Location")
16

print("4.Add new customer Detail with


Input")
print("5.Show Details of customers with
New Column Names")
print("6.Show Customer Detail By Name")
print("7.Show Types of Room Available")
print("8.Ask Customer's choice of room
and calculate charges according to stay")
print("9.Rent Increment")
print("10.List of Charges in Table
Laundry")
print("11.Add Details of Items and
Charges in Laundry")
print("12.Show Laundry Bill")
print("13.Delete Column Address")
print("14.Add Details of Games and
Charges")
print("15.Show all Games List")
print("16.Game Bill")
print("17.Costliest Bill")
print("18.Minimum Charges of a Game")
print("19.Add Details of food items
available in a list")
print("20.Show Menu of the Restaurant")
print("21.Restaurant Bill")
print("**********************************
**********************")
opt=""
opt=int(input("Enter your choice: "))
if opt==1:
about()
elif opt==2:
no_index()
17

elif opt==3:
new_customer()
elif opt==4:
new_cust()
elif opt==5:
new_colnam()
elif opt==6:
sort_customer()
elif opt==7:
show_roomtype()
elif opt==8:
roomrent()
elif opt==9:
rent_inc()
elif opt==10:
laundry()
elif opt==11:
add_laundry()
elif opt==12:
lbill()
elif opt==13:
delete_col()
elif opt==14:
add_game()
elif opt==15:
show_game()
elif opt==16:
gamebill()
elif opt==17:
maxchargegame()
elif opt==18:
minchargegame()
elif opt==19:
18

add_restaurant()
elif opt==20:
show_restaurant()
elif opt==21:
restaurantbill()

else:
print("Invalid Option")

import winsound
winsound.Beep(1000,300)

menu()

Outputs:
19

def about():

This Output Reveals a little about the code as it has 21


functions and 5 CSV Files are used etc.

def new_cust():
20

So, the above result shows the adding of a new


customer in the csv file from just the code.

NOTE:- CSV is used here as “customer.csv”.

def restaurantbill():
21

Here, the Food Items along with their prices are shown
as well as calculated and CSV file restaurant.csv is used
for showing the food items.

def gamebill():
22

Here ,again a CSV file “games.csv” is


used to show games and their prices and
to read the file, a module named “pandas”
is used, I couldn’t find another relevant to
way other than using that module
nowhere.

def lbill():
23

So, the above function used is named as


“def lbill()”.It will calculate the laundry
prices. Again a CSV file is used
“laundry.csv” to show various types of
clothes. And “pandas.read_csv” is again
used.

def roomtype():
24

Here different types of rooms available


are just only shown, we can also book
them in another function.CSV File is used
“roomtype.csv”.

def roomrent():
25

Here the user can book any room


provided, he will be shown calculated
charge according to the duration he stays.

BIBLIOGRAPHY
26

• Computer science With Python -


Class XII By : Sumita Arora
• A Project Report On HOTEL
MANAGEMENT SYSTEM.
By : Priyanshu Gautam
• Website: www.google.com

***************************************

You might also like