Final Ip Proj
Final Ip Proj
Session 2024 - 25
A Project Report on
Signature of Principal
ACKNOWLEDGEMENT
W e
undertook this Project work
We would like to take the opportunity to extend our sincere thanks and
gratitude to our parents for being a source of inspiration and providing
time and freedom to develop this software project.
We also feel indebted to our friends for the valuable suggestions during
the project work.
1. Introduction
4. System Implementation
1) Database Design:
6. Biblography
INTRODUCTION
program which provides a friendly interface for the user to interact to a “HOTEL
MANAGEMENT SYSTEM” so that they get to experience Booking a Room and Indulge
themselves in other playfull activities such as spa, gaming etc. This program mainly
brings forth the usage of GUI programming in the daily usage over the network.
System Implementation
1.) SPYDER
2.) EXCEL
3.) NOTEPAD
BIBLIOGRAPHY
In order to work on this project titled –HOTEL MANAGEMENT SYSTEM , the following
books and literature are refered by me during the various phases of development of the project.
(1) https://www.python.org/downloads/
(2) INFORMATICS PRACTICES for class XII -by Sumita Arora
SOURCE CODE
import pandas as pd
# Ensure customer data contains 'Active' status column for auto-billing tracking
if 'Active' not in customer_data.columns:
customer_data['Active'] = False
def auto_billing():
global customer_data, rooms
today = pd.Timestamp.now().strftime('%Y-%m-%d') # Get today's date in YYYY-MM-DD
format
# Filter guests who are checking out today
check_out_today = customer_data[
(customer_data['Check-Out Date'] == today) & (customer_data['Active'] == True)
]
# 2. Book Room
def book_room(room_number, guest_name, room_type, check_in_date, check_out_date):
global customer_data
available_room = rooms[(rooms['Room Number'] == room_number) & (rooms['Availability']
== True)]
if not available_room.empty:
rooms.loc[rooms['Room Number'] == room_number, 'Availability'] = False # Mark room
as booked
new_booking = pd.DataFrame([{
'Guest Name': guest_name,
'Room Number': room_number,
'Room Type': room_type,
'Check-In Date': check_in_date,
'Check-Out Date': check_out_date,
'Active': True
}])
customer_data = pd.concat([customer_data, new_booking], ignore_index=True)
print(f"Room {room_number} booked successfully for {guest_name}.")
return available_room['Price per Night'].values[0]
else:
print(f"Sorry, Room {room_number} is not available.")
return 0
# 3. Order Food
def order_food(room_number, food_item):
if food_item in food_menu['Item'].values:
food_price = food_menu.loc[food_menu['Item'] == food_item, 'Price'].values[0]
new_order = pd.DataFrame([{
'Room Number': room_number,
'Food Item': food_item,
'Price': food_price
}])
global orders
orders = pd.concat([orders, new_order], ignore_index=True)
print(f"Food order for room {room_number}: {food_item} has been placed.")
return food_price
else:
print(f"Food item '{food_item}' not found in menu.")
return 0
# 7. Auto-Billing Function
def auto_billing():
global customer_data, rooms
today = pd.Timestamp.now().strftime('%Y-%m-%d') # Get today's date in YYYY-MM-DD
format
# 8. Make Payment
def make_payment(room_number, payment_method):
total_amount = calculate_total_bill(room_number)
print(f"Total bill for room {room_number} is: ${total_amount}")
print(f"Payment method selected: {payment_method}")
print(f"Payment of ${total_amount} completed successfully!")
# Menu-driven Program
def hotel_management_system():
while True:
print("\nMENU:")
print("1. Check Room Availability")
print("2. Book a Room")
print("3. Order Food")
print("4. Book Spa Service")
print("5. Book Gaming Club")
print("6. Calculate Total Bill")
print("7. Auto Billing")
print("0. Exit")
if choice == 1:
room_type = input("Enter room type (Single, Double, Suite, Deluxe): ")
available_rooms = check_availability(room_type)
print("Available Rooms:\n", available_rooms[['Room Number', 'Room Type']])
elif choice == 2:
room_number = int(input("Enter room number: "))
guest_name = input("Enter guest name: ")
room_type = input("Enter room type (Single, Double, Suite, Deluxe): ")
check_in_date = input("Enter check-in date (YYYY-MM-DD): ")
check_out_date = input("Enter check-out date (YYYY-MM-DD): ")
price = book_room(room_number, guest_name, room_type, check_in_date,
check_out_date)
print(f"Total Room Price Per Night: ${price}")
elif choice == 3:
room_number = int(input("Enter room number: "))
food_item = input("Enter food item to order: ")
food_price = order_food(room_number, food_item)
print(f"Food Price: ${food_price}")
elif choice == 4:
room_number = int(input("Enter room number: "))
service = input("Enter spa service to book (Massage, Facial, Manicure, Pedicure): ")
spa_price = book_spa_service(room_number, service)
print(f"Spa Service Price: ${spa_price}")
elif choice == 5:
room_number = int(input("Enter room number: "))
game = input("Enter gaming option to book: ")
game_price = book_gaming_club(room_number, game)
print(f"Gaming Session Price: ${game_price}")
elif choice == 6:
room_number = int(input("Enter room number to calculate bill: "))
total_bill = calculate_total_bill(room_number)
print(f"Total bill for room {room_number}: ${total_bill}")
elif choice == 7:
room_number = int(input("Enter room number: "))
payment_method = input("Enter payment method (Credit Card, Cash, Debit Card,
Online Payment): ")
make_payment(room_number, payment_method)
auto_billing()
elif choice == 0:
print("Thank you for choosing Rosewood Hotels and Resorts. Have a great day!")
break
else:
print("Invalid choice! Please try again.")
Choice 1
Choice 2
Choice 3
Choice 4
Choice 5
Choice 6
Choice 7
Choice 0
Updation in Excel Sheets
Customer_data.csv
Food_orders.csv
Spa_booking.csv
Gaming_booking.csv
Food_menu.csv
Spa_services.csv
Gaming_club.csv