A menu-driven hotel booking system developed in C that simulates real-world room allocation. The application allows users to book, view, and cancel room reservations while maintaining dynamic room availability.
- Book Single and Double rooms
- Dynamic room allocation with unique room numbers
- View all booking records
- Cancel bookings with automatic room update
- Input validation for reliable execution
- Menu-driven interface for better user interaction
- Structures (
struct) for data organization - Arrays for storing multiple bookings
- Global variables for shared state management
- Functions for modular design
- String handling (
strcmp,strcpy,fgets) - Control statements (
if-else,switch, loops`)
- Language: C
- Libraries:
stdio.h,string.h - Platform: Console-based application
-
Maintains separate counters for:
- Single rooms
- Double rooms
-
Assigns:
- Single rooms → starting from
1 - Double rooms → starting from
101
- Single rooms → starting from
-
Stores customer details:
- Name
- Age
- Room number
- Room type
gcc hotel.c -o hotel./hotel- Select room type
- Enter number of rooms
- Provide user details
- System allocates rooms dynamically
- View or cancel bookings anytime
- File handling (persistent storage)
- Login/authentication system
- GUI-based interface
- Payment integration
- Room availability dashboard
This project demonstrates:
- Practical implementation of data structures in C
- Handling real-world logic using procedural programming
- Writing modular and maintainable code
Naga Rohit Anudeep N Electronics & Communication Engineering Aspiring Embedded Systems Engineer