HOTEL MANAGEMENT PROJECT Print Final-1 Conv
HOTEL MANAGEMENT PROJECT Print Final-1 Conv
HOTEL MANAGEMENT PROJECT Print Final-1 Conv
INVESTIGATERY PROJECT ON
CLASS : XII - A
SUBJECT : PHYSICS
SUB CODE
: 083
Indore,Madhya Pradesh
Contents
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.
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
Source Code:
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)
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
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 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 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
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
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():
def new_cust():
20
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
def lbill():
23
def roomtype():
24
def roomrent():
25
BIBLIOGRAPHY
26
***************************************