π¨ Hotel Management System in C
This project is a Hotel Management System built using the C programming language. It allows managing hotel operations such as adding customers, displaying customer details, searching, checking out customers, and displaying all room information.
The project uses dynamic memory allocation (malloc, realloc, free) to manage rooms efficiently.
π Features
β Add a new customer with details (Name, Check-in, Check-out, Rent)
β Display customer information by room number
β Search customer (by room number)
β Check-out customer and free up room
β Display all occupied rooms
β Dynamic room allocation (automatic resizing of room capacity)
π οΈ Technologies Used
Language: C
Headers Used: stdio.h, stdlib.h, string.h
Concepts:
Structures in C (typedef struct)
Dynamic memory allocation (malloc, realloc, free)
Array handling
Menu-driven programming
π How to Run
Clone or download this repository.
Open the project folder in your terminal.
Compile the program:
gcc hotel_management.c -o hotel_management
Run the executable:
./hotel_management
π Project Structure hotel-management-system/ βββ hotel_management.c # Main source code βββ README.md # Project documentation
π Sample Menu Hotel Management System
- Add Customer
- Display Customer Info
- Search Customer
- Check Out Customer
- Display All Rooms
- Exit
πΈ Example Output Hotel Management System
- Add Customer
- Display Customer Info
- Search Customer
- Check Out Customer
- Display All Rooms
- Exit Enter your choice: 1
Enter customer details: Customer Name: John Doe Check-in Date (YYYY-MM-DD): 2025-08-28 Check-out Date (YYYY-MM-DD): 2025-08-30 Room Rent: 5000 Customer added successfully!
π Future Improvements
π·οΈ Add file handling to save customer data permanently.
π³ Add billing with taxes and discounts.
π Develop a GUI version in C++/Java/Python.
π¨βπ» Author Aditya Prakash