Blue Green Pink Creative Project Management Presentation
Blue Green Pink Creative Project Management Presentation
Class&sec = 11 B
Subject = CS
HOTEL
MANAGEMENT
PROJECT IN
PYTHON
Presentation by Rehan hussain
Rehan hussain
Project Overview:
This Hotel Management System allows a
hotel to manage room bookings, check-
ins, check-outs, and billing efficiently.
The system ensures smooth operation by
maintaining customer records, room
availability, and generating invoices.
Rehan hussain
Features to Include:
1. Admin 2. Customer 3. Room 4. Billing
Functionalities: Management: Booking System: System:
Add new rooms Add new customer details Check available Generate bills based
View all bookings View customer records rooms on stay duration
Generate reports Book a room Include additional
Check-in and Check- services (like food,
out laundry)
Technology Stack:
Programming Language: Python
Database: MySQL (or SQLite for
simplicity)
GUI (Optional): Tkinter (for a user-
friendly interface)
Rehan hussain
Code Outline
Here’s a basic structure of how your
Python program can be designed:
1. Database Connection (MySQL) 2. Customer Registration
3. Room Booking
def book_room():
customer_id = input("Enter Customer ID: ")
room_no = input("Enter Room Number: ")
check_in = input("Enter Check-in Date (YYYY-MM-DD): ")
query = "INSERT INTO bookings (customer_id, room_no, check_in)
VALUES (%s, %s, %s)"
values = (customer_id, room_no, check_in)
cursor.execute(query, values)
conn.commit()
print("Room booked successfully!")
Rehan hussain
4. Billing System
def generate_bill():
customer_id = input("Enter Customer ID: ")
query = "SELECT * FROM bookings WHERE customer_id = %s"
cursor.execute(query, (customer_id,))
booking = cursor.fetchone()
if booking:
days_stayed = int(input("Enter number of days stayed: "))
cost_per_day = 1000 # Example rate
total_amount = days_stayed * cost_per_day
print(f"Total Bill: {total_amount}")
else:
print("Booking not found!")
Output: Rehan hussain
1. Adding a Customer
Input: Expected Output:
Enter Customer Name: John Doe Customer added successfully!
Enter Phone Number: 9876543210
2. Booking a Room
Input: Expected Output:
Enter Customer ID: 1 Room booked successfully!
Enter Room Number: 101
Enter Check-in Date (YYYY-MM-DD): 2025-03-11
3. Generating a Bill
Input: Expected Output:
Enter Customer ID: 1 Total Bill: 3000
Enter number of days stayed: 3