Hostel Management System in C with Source Code
This Hostel Management System Project in C Language is developed using C programming language. It is a console-based tool with several options for adding, removing, updating, viewing, searching, and modifying student. It employs the file management idea to store data in.TXT files, making read and write times faster.
There are 45 rooms in this hostel. A total of 25 bi-seaters and 20 tri-seaters are available. As a result, the maximum number of pupils is 110. There are three levels to the building. There are 15 rooms on each floor. Bi-seaters can be found in rooms 101 to 115 and 201 to 210. Tri-seaters can be found in rooms 211 to 215 and 301 to 315.
A system produces an external file to permanently save the user’s data. This system was created using the C programming language, and several variables and strings were employed in its creation.
Anyway if you want level up your knowledge in programming especially C/C++ Programming Language, try this new article I’ve made for you Best C Projects with Source Code for Beginners Free Download 2020.
To run this Hostel Management System in C make sure that you have a Code Blocks or any platform of C installed in your computer. Please scroll down and click the download button to obtain a free copy of the Hostel Management System project.
ABOUT PROJECT | PROJECT DETAILS |
---|---|
Project Name : | Hostel Management System |
Project Platform : | C/C++ |
Programming Language Used: | C Programming Language |
Developer Name : | itsourcecode.com |
IDE Tool (Recommended): | Dev-C++/Codeblocks |
Project Type : | Desktop Application |
Database: | Stores data in .DAT file |
Upload Date and Time: | July 27, 2021- 7:08 am |
Hostel Management System in C Steps On How To Run The Project
Time needed: 5 minutes.
Here’s the step’s on how to run a Hostel Management System in C with Source Code.
- Step 1: Extract file.
Next, after you finished download the source code, extract the zip file.
- Step 2: Open CodeBlocks
After that, After extracting the zip file, open your “CodeBlocks IDE”.
- Step 3: Open Project.
Then, open file tab and Open File after that open folder HMS-IN-C then click the “main“.
- Step 4: Run Project
Lastly, Open build tab and select build and run or you can use key F9.
- Step 5: The actual code.
Finally, You are free to copy the given source code below or download the downloadable source code given.
This Hostel Management System in C was build and run under Code::Blocks IDE.
- Function in Fields of Data for Waiting List.
char WLname[CAP][50]; char WLcms[CAP][8]; char WLcontact[CAP][13]; char WLdept[CAP][10]; int WLyear[CAP];
- Function in Fields of Data for Students currently residing.
char name[CAP][50]; char cms[CAP][8]; char contact[CAP][13]; int year[CAP]; int room[CAP]; int bed[45][3]; char dept[CAP][10]; int appliances[45]; int fines[CAP];
- The function to import names, import CMS ID, import contact, import departments, import appliances, import room numbers and import years.
if (start == 0) { myfile = fopen("names.txt", "r"); for (int i = 0; i < CAP; i++) { fgets(name[i], 50, myfile); name[i][strlen(name[i]) - 1] = '\0'; } fclose(myfile); myfile = fopen("cms.txt", "r"); for (int i = 0; i < CAP; i++) { fgets(cms[i], 8, myfile); cms[i][strlen(cms[i]) - 1] = '\0'; } fclose(myfile); myfile = fopen("contact.txt", "r"); for (int i = 0; i < CAP; i++) { fgets(contact[i], 13, myfile); contact[i][strlen(contact[i]) - 1] = '\0'; } fclose(myfile); myfile = fopen("dept.txt", "r"); for (int i = 0; i < CAP; i++) { fgets(dept[i], 10, myfile); dept[i][strlen(dept[i]) - 1] = '\0'; } fclose(myfile); myfile = fopen("appliances.txt", "r"); for (int i = 0; i < CAP; i++) { fscanf(myfile, "%d", &appliances[i]); } fclose(myfile); myfile = fopen("room.txt", "r"); for (int i = 0; i < CAP; i++) { fscanf(myfile, "%d", &room[i]); } fclose(myfile); myfile = fopen("year.txt", "r"); for (int i = 0; i < CAP; i++) { fscanf(myfile, "%d", &year[i]); } fclose(myfile); ts = time(NULL); ct = localtime(&ts);
- Function in main menu.
MENU: printf("\n\n\tMAIN MENU: \n"); printf("\t To List details of students in a particular room, press 1 \n"); printf("\t To Modify/Remove details of a student, press 2 \n"); printf("\t To Check waiting list, press 3 \n"); printf("\t To Check for vacancies, press 4 \n"); printf("\t To Display a report, press 5 \n"); printf("\t To View/Edit fines, press 6 \n"); printf("\t To Save changes, press 7 \n"); printf("\t To Exit program, press 8 \n"); printf("\nEnter your command: "); scanf("%d", &input);
- Function in exporting Waiting list names, exporting Waiting list CMS, exporting Waiting list department, exporting Waiting list and exporting Waiting list year contacts.
myfile = fopen("WLnames.txt", "w"); for (int i = 0; i < CAP; i++) { fprintf(myfile, "%s\n", WLname[i]); } fclose(myfile); myfile = fopen("WLcms.txt", "w"); for (int i = 0; i < CAP; i++) { fprintf(myfile, "%s\n", WLcms[i]); } fclose(myfile); myfile = fopen("WLdept.txt", "w"); for (int i = 0; i < CAP; i++) { fprintf(myfile, "%s\n", WLdept[i]); } fclose(myfile); myfile = fopen("WLcontact.txt", "w"); for (int i = 0; i < CAP; i++) { fprintf(myfile, "%s\n", WLcontact[i]); } fclose(myfile); myfile = fopen("WLyear.txt", "w"); for (int i = 0; i < CAP; i++) { fprintf(myfile, "%d\n", WLyear[i]); } fclose(myfile);
Downloadable Source Code
Conclusion
This Hostel Management System in C with Source Code is only a project made for school requirement purposes only. A Hostel Management System in C language was created specifically for a semester project. It aims to give beginners a good understanding of programming small to large projects by imparting general workable and practical information about C. You can download this program and modify it to suit your client requirements, since this is a student project it means you cannot really expect 100% functionality from this.
Related Articles
- Simple Hospital Management System In C With Source Code
- Employee Management System In C With Source Code
- Hotel Management System Project In C With Source Code
- School Billing System in C with Source Code
- Bank Management System in C with Source Code
- ATM Machine C Program With Source Code
- Department Store Management System Project in C with Source Code
- Library Management System In C With Source Code
- Student Record System in C with Source Code
- Medical Store Management System In C With Source Code
- Tourism Management System Project in C with Source Code
- Bookshop Management System Project In C With Source Code
- Prison Management System Project in C with Source Code
- Tic Tac Toe In C Programming With Source Code
- Customer Billing System C Project With Source Code
- Snake Game In C Programming With Source Code
- Bus Reservation System Project In C Language With Source Code
- Snakes And Ladders Game In C Language With Source Code
- Pacman Game In C With Source Code
- Employee Record Management System in C with Source Code
- Contact Management System in C with Source Code
- Car Rental System in C with Source Code
- Stock Management System Project in C with Source Code
- Airline Reservation System Project In C With Source Code
- Gym Management System In C With Source Code
- Hangman Game In C With Source Code
- Inventory Management System Project in C Language with Source Code
- Student Attendance Management System in C Language w/ Source Code
- Student Management System in C with Source Code
- Payroll Management System in C Language with Source Code
- Food Ordering Management System in C with Source Code
- Clothing Store Management System Project in C with Source Code
- Quiz Game in C with Source Code
- Guessing Game in C Programming with Source Code
- Student Database Management System in C with Source Code
- Pizza Ordering System in C Language with Source Code
- Mobile Shop Management System Project in C Language w/ Source Code
- Canteen Management System Project in C Language with Source Code
- College Management System Project in C Language with Source Code
Other Articles you might read also:
- Best Final Year Project for Computer Science 2021
- Best Thesis Title For IT/CS Student [Updated 2021]
- How to Make An Effective Thesis or Capstone Document
- Writing A Good Research Title For Thesis or Capstone Project
- ICHS Library Management System
- College Management System Project in Django with Source Code
- Search Filter In Django With Source Code
- Best Python Course Online | Python Course Free 2021
- ECOMMERCE IN JAVASCRIPT FRAMEWORK WITH SOURCE CODE
- To Do List Project in Python with Source Code | Video | 2020
Inquiries
If you have any questions or suggestions about Hostel Management System in C Source Code, please feel free to leave a comment below.
PASSWORD?????
itsourcecode