0% found this document useful (0 votes)
11 views7 pages

Blue Green Pink Creative Project Management Presentation

The document outlines a Hotel Management System project developed in Python, which facilitates room bookings, check-ins, check-outs, and billing. Key features include customer management, room booking, and billing functionalities, with a technology stack that includes Python and MySQL. The document also provides code outlines for customer registration, room booking, and bill generation.
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)
11 views7 pages

Blue Green Pink Creative Project Management Presentation

The document outlines a Hotel Management System project developed in Python, which facilitates room bookings, check-ins, check-outs, and billing. Key features include customer management, room booking, and billing functionalities, with a technology stack that includes Python and MySQL. The document also provides code outlines for customer registration, room booking, and bill generation.
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/ 7

Name = Rehan hussain

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

import mysql.connector def add_customer():


name = input("Enter Customer Name: ")
conn = mysql.connector.connect( phone = input("Enter Phone Number: ")
host="localhost", query = "INSERT INTO customers (name, phone) VALUES (%s, %s)"
user="root", values = (name, phone)
password="yourpassword", cursor.execute(query, values)
database="hotel_db" conn.commit()
) print("Customer added successfully!")
cursor = conn.cursor()
Rehan hussain

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

You might also like