Apurva Hotel Management System is a console-based hotel management program written in C, designed to support multiple user roles: Admin, Employee, and Customer. The system allows hotel room bookings for any day within a 365-day window, complete with persistent storage for user accounts, booking history, and room data.
- Multi-user support: Admin, Employee, and Customer roles
- Bookings per room per day (up to 365 days in advance)
- Account management and login system
- Persistent data stored in
.txtfiles - Easy navigation via terminal interface
To run this project successfully, ensure all the following files are in the same folder:
- main.c
- common.h
- date_function.h
- admin_menu.h
- employee_menu.h
- customer_menu.h
- accommodation_data.txt
- history.txt
- employee.txt
- customers.txt
- default_day.txt
- room_description.txt
- room_details.txt
- Open the project folder in Visual Studio Code or your preferred C IDE.
- Run the file:
main.c. - For optimal viewing, maximize your terminal window and hide the file explorer in VS Code for cleaner output formatting.
You are encouraged to register your own employee and customer accounts for a smoother experience.
- ID :
admin - Password :
password
- ID :
emp001 - Password :
admin123
Other employee accounts can be found in employee.txt.
- ID :
cust008 - Password :
apurva123
Other customer accounts can be found in customers.txt, but some were created for testing and may have mismatched data.
For developers modifying or analyzing this project, the following file roles may be useful:
history.txt– stores all booking historycustomers.txt– stores all customer accountsemployee.txt– stores all employee accountsaccommodation_data.txt– stores current room availabilityroom_description.txt&room_details.txt– provide info per room typedefault_day.txt– stores system date marker
⚠️ DO NOT edit these.txtfiles manually, as it may corrupt the system or cause data mismatches.
Thank you for using Apurva Hotel Management System! We hope this project offers a helpful demonstration of basic hotel management logic in C.
Feel free to explore, register, and test different roles. Enjoy the system!