Skip to content

adityap-codes07/Hotel-Management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 

Repository files navigation

🏨 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

  1. Add Customer
  2. Display Customer Info
  3. Search Customer
  4. Check Out Customer
  5. Display All Rooms
  6. Exit

πŸ“Έ Example Output Hotel Management System

  1. Add Customer
  2. Display Customer Info
  3. Search Customer
  4. Check Out Customer
  5. Display All Rooms
  6. 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

About

Managing the data with basics structure in C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages