0% found this document useful (0 votes)
32 views92 pages

HMS Finalrecord

The document is a project report on the development of a Hostel Management System submitted by P A Alfiya for the Master of Computer Applications program. It outlines the project's objectives, which include automating hostel administration tasks, improving student experience, and enhancing data security. The report details the existing manual processes, their limitations, and the proposed computerized system designed to address these issues.

Uploaded by

alfiyaashraf1114
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views92 pages

HMS Finalrecord

The document is a project report on the development of a Hostel Management System submitted by P A Alfiya for the Master of Computer Applications program. It outlines the project's objectives, which include automating hostel administration tasks, improving student experience, and enhancing data security. The report details the existing manual processes, their limitations, and the proposed computerized system designed to address these issues.

Uploaded by

alfiyaashraf1114
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 92

A Project Report

On
HOSTEL MANAGEMENT SYSTEM
Submitted to the
Department of Computer Applications

In partial fulfillment of the


MASTER OF COMPUTER APPLICATIONS

Under the guidance of


Ms. ARYA P PILLAI

Project Done by
P A ALFIYA
Reg No: 233242210870

DEPARTMENT OF COMPUTER APPLICATIONS

MES ADVANCED INSTITUTE OF MANAGEMENT AND TECHNOLOGY


MARAMPALLY

November - 2024
MES ADVANCED INSTITUTE OF MANAGEMENT AND TECHNOLOGY
MARAMPALLY

BONAFIDE CERTIFICATE

Certify that the Project Work entitled


HOSTEL MANAGEMENT SYSTEM
Is a Bonafide work done by
P A ALFIYA

In partial fulfillment of the requirement for the award of


MASTER OF COMPUTER APPLICATIONS

Degree From
Mahatma Gandhi University, Kottayam
2023-2025

Head of the Department Ms. ARYA P PILLAI


Project Guide
MES ADVANCED INSTITUTE OF MANAGEMENT AND TECHNOLOGY
MARAMPALLY

CERTIFICATE

This is to certify that the project entitled “HOSTEL MANAGEMENT SYSTEM” has
been successfully carried out by P A ALFIYA (233242210870) in partial fulfillment of the
course Master of Computer Applications.

Date: HEAD OF THE DEPARTMENT


MES ADVANCED INSTITUTE OF MANAGEMENT AND TECHNOLOGY
MARAMPALLY

CERTIFICATE

This is to certify that the project entitled “HOSTEL MANAGEMENT SYSTEM” has
been successfully carried out by P A ALFIYA (233242210870) in partial fulfillment of
the course Master of Computer Applications under my guidance.

Date: ARYA P PILLAI


INTERNAL GUIDE
MES ADVANCED INSTITUTE OF MANAGEMENT AND TECHNOLOGY
MARAMPALLY

DECLARATION

I, P A ALFIYA, hereby declare that the project work entitles “HOSTEL


MANAGEMENT SYSTEM” is an authenticated work carried out by me under the
guidance of ARYA P PILLAI for the partial fulfillment of the course MASTER OF
COMPUTER APPLICATIONS. This work has not been submitted for similar purpose
anywhere else except to MES ADVANCED INSTITUTE OF MANAGEMENT AND
TECHNOLOGY, MARAMPALLY.

I understand that detection of any such copying is liable to be punished in any way
the school deems fit.

Date: P A ALFIYA

Place: Signature
TABLE OF CONTENTS
Chapter No Description Page No
ABSTRACT 1
INTRODUCTION 2
1.1. INTRODUCTION
3
1 1.2. PROBLEM STATEMENT
1.3. SCOPE AND RELEVANCE OF PROJECT
4
1.4 OBJECTIVES
SYSTEM ANALYSIS 6
2.1. INTRODUCTION
2.2. EXISTING SYSTEM 7
2.2.1 Limitation of Existing System
2.3. PROPOSED SYSTEM
9
2 2.3.1 Advantages of Proposed System
2.4 FEASIBILITY STUDY
2.4.1 Technical Feasibility
2.4.2 Operational Feasibility 11
2.4.3 Economic Feasibility
2.5 SOFTWARE PARADIGM APPLIED: V MODEL
SYSTEM DESIGN 13
3.1. INTRODUCTION
14
3.2. DATABASE DESIGN
3.2.1 Entity Relationship Model
15
3.3. OBJECT ORIENTED DESIGN
3
3.3.1 Activity Diagram 16
3.3.2 Sequence Diagram 17
3.3.3 Use Case Diagram 18
3.4. INPUT DESIGN 19
3.5. OUTPUT DESIGN 20
SYSTEM ENVIRONMENT 22
4.1. INTRODUCTION 23
4.2. SOFTWARE REQUIREMENT
4.3. HARDWARE REQUIREMENT
4 SPECIFICATION 24
4.4. TOOLS AND PLATFORMS
4.4.1 Front End Tools
4.4.2 Back End Tools 28
4.4.3 Operating System 29
SYSTEM IMPLEMENTATION 30
5.1. INTRODUCTION 31
5
5.2. CODING SAMPLE CODES (CORE FORMS) 32
5.3 CODE VALIDATION AND OPTIMIZATION 52
SYSTEM TESTING 53
6.1. INTRODUCTION
54
6 6.2. UNIT TESTING
6.3. INTEGRATION TESTING 56
6.4. SYSTEM TESTING
6.4.1 Test cases 57
SYSTEM MAINTENANCE 59
7 7.1. INTRODUCTION
7.2. MAINTENANCE 60
FUTURE ENHANCEMENT AND SCOPE OF
FURTHER DEVELOPMENT 62
8.1. INTRODUCTION 63
8 8.2. MERITS OF THE SYSTEM
64
8.3. LIMITATIONS OF THE SYSTEM
8.4. FUTURE ENHANCEMENT OF THE SYSTEM 66
9 CONCLUSION 67
10 BIBLIOGRAPHY 70
APPENDIX 72
HOSTEL MANAGEMENT SYSTEM

ABSTRACT

“HOSTEL MANAGEMENT SYSTEM” is software developed for managing various activities in


the hostel. For the past few years, the number of educational institutions is increasing rapidly.
Thereby the number of hostels is also increasing for the accommodation of the students studying
in this institution. And hence there is a lot of strain on the person who are running the hostel and
software’s are not usually used in this context. This particular project deals with the problems on
managing a hostel and avoids the problems which occur when carried manually.

Identification of the drawbacks of the existing system leads to the designing of computerized
system that will be compatible to the existing system with the system which is more user friendly
and more GUI oriented. We can improve the efficiency of the system, thus overcome the
drawbacks of the existing system.

DEPARTMENT OF COMPUTER APPLICATIONS 1 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

CHAPTER 1

INTRODUCTION

DEPARTMENT OF COMPUTER APPLICATIONS 2 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

1.1 INTRODUCTION
In our current era of automated systems with it being either software or hardware, it’s not
advisable to be using manual system. Hostels without a management system are usually done
manually. Registration forms verification to other data saving processes are done manually and
most at times, they are written on paper. Thus, a lot of repetitions can be avoided with an
automated system. The drawbacks of existing systems lead to the design of a computerised
system that will help reduce a lot of manual inputs. With this system in place, we can improve
the efficiency of the system, thus overcome the drawbacks of the existing manual system.

This system is designed in favour of the hostel management which helps them to save the
records of the students about their rooms and other things. It helps them from the manual work
from which it is very difficult to find the record of the students and the mess bills of the students,
and the information of about those ones who had left the hostel years before.

2.2 PROBLEM STATEMENT


“HOSTEL MANAGEMENT SYSTEM” is software developed for managing various activities in
the hostel. For the past few years, the number of educational institutions is increasing rapidly.
Thereby the number of hostels is also increasing for the accommodation of the students studying
in this institution. And hence there is a lot of strain on the person who are running the hostel and
software’s are not usually used in this context. This particular project deals with the problems on
managing a hostel and avoids the problems which occur when carried manually.

ADMIN MODULE
1. Admin Login - Admin can login through login form.
2. Admin Profile - Admin can manage his own profile. Admin can also change his password
3. Courses - Admin can create add course, edit courses and also delete the course.
4. Rooms - Admin can create rooms and allots seater to particular rooms and assign the fees.
5. Registration - Admin can create student profile and allot the rooms.
6. Manage the Registration - Admin can manage the all the student Profile. Take a print out of all
profiles and also delete the profile.
7. Complaints - Admin can manage the all the student complaints and take the appropriate action.
8. Feedback - Admin can view the feedback given by students for the hostel.

DEPARTMENT OF COMPUTER APPLICATIONS 3 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

USER MODULE
1. User Registration - User can register through user registration form.
2. User Login - User can login through login form.
3. User Dashboard
4. User Profile -User can manage own profile.
5. Book Hostel - User can book hostel.
6. Room Details - Booked Room Details.
7. Complaint Registration - Student can lodge the complaint.
8. Registered Complaint - Student can check the registered complaint and their status.
9. Feedback - Student give their feedback for hostel.
10. User access log - User can watch last login details.

1.3 SCOPE AND RELEVANCE OF THE PROJECT


The scope of a hostel management system website encompasses several key areas to ensure
effective and efficient management of hostel operations. Here’s a breakdown:
• User friendly: Easy to use and understand
• Strength and strain of manual labour can be reduced and also error reduced
• Data Protection: Ensure that user data is securely stored and managed.
• Easy to handle: We can store data and easily manage.
• Updating: We can simply edit information and stored.
• Record keeping: we can store information.

1.4 OBJECTIVES
As the name specifies “HOSTEL MANAGEMENT SYSTEM” is software developed for
managing various activities in the hostel. For the past few years, the number of educational
institutions is increasing rapidly. Thereby the number of hostels is also increasing for the
accommodation of the students studying in this institution. And hence there is a lot of strain on the
person who are running the hostel and software’s are not usually used in this context. This
particular project deals with the problems on managing a hostel and avoids the problems which
occur when carried manually. Identification of the drawbacks of the existing system leads to the
development of computerized hostel management system that will be compatible to the existing
system with the system which is more users friendly and more GUI oriented.

DEPARTMENT OF COMPUTER APPLICATIONS 4 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

1. Simplify Hostel Administration:


- Enable the hostel management team (administrators) to easily manage students, rooms, courses,
and fees, thus reducing the manual workload.

- Automate tasks like room allocation, fee management, student registration, and feedback col-
lection.

2. Efficient Room and Resource Allocation:


- Facilitate room management by allowing the admin to assign rooms based on the seating capac-
ity, availability, and student preferences.

- Ensure that students are allocated rooms according to their requirements and course affiliation.

3. Improve Student Experience:


- Allow students to register, book rooms, manage their profiles, and view available rooms in real
time, making the hostel experience more convenient and transparent.

- Provide students with easy access to their booking details, room information, and feedback on
complaints or services.

4. Automate Complaints and Feedback Handling:


- Enable students to lodge complaints and provide feedback, allowing administrators to respond
or take actions promptly.

- Track complaints and feedback for continuous improvement of hostel services and facilities.

5. Enhance Data Security and Privacy:


- Ensure the security of user data (both admin and student) through secure login mechanisms and
encrypted password storage.

- Provide administrators with the ability to control access to sensitive data based on roles and
permissions.

DEPARTMENT OF COMPUTER APPLICATIONS 5 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

CHAPTER 2

SYSTEM ANALYSIS

DEPARTMENT OF COMPUTER APPLICATIONS 6 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

2.1 INTRODUCTION

System analysis of study is an important phase of any system development process. The system
is studied to the minutest details and analysed. The system analyst plays the role of an interrogator
and dwells deep into the working of the present system. The system is viewed as a whole and the
inputs to the system are identified. The outputs from the organization are traced to through the
various processing that the input phases through in the organization. A detailed study of this process
must be made by various techniques like interviews, questionnaires, etc. The data collected by these
sources must be scrutinized to arrives to a conclusion. The conclusion is an understanding of the
system function. This system is called existing system. Now the existing system is close study and
problem solver tries to sort out difficulties that the enterprise faces.

2.2 EXISTING SYSTEM


All these hostels at present are managed manually by the hostel office. The Registration form
verification to the different data processing is done manually. Thus, there are a lot of repetitions
which can be easily avoided. And hence there is a lot of strain on the person who are running the
hostel and software’s are not usually used in this context. This particular project deals with the
problems on managing a hostel and avoids the problems which occur when carried manually

Identification of the drawbacks of the existing system leads to the designing of computerized
system that will be compatible to the existing system with the system which is more user
friendly and more GUI oriented. We can improve the efficiency of the system, thus overcome
the drawbacks of the existing system.

2.2.1 LIMITATION OF EXISTING SYSTEM

1. Time-Consuming and Inefficient Manual Processes

- Manual Room Allocation: Room assignments are often done manually, leading to errors or
delays in allocation. Admins have to check room availability manually, which is time-consuming.

- Student Registration: The process of registering new students, verifying details, and assign-
ing rooms manually can take up a significant amount of time, especially as the number of students
increases.

DEPARTMENT OF COMPUTER APPLICATIONS 7 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

- Paper-based Records: Using physical files and paper documents for student records, fees,
and complaints is inefficient and prone to errors, making data retrieval slow and
cumbersome.

2. High Chances of Human Error

- Data Entry Mistakes: Manual data entry often leads to errors such as incorrect student infor-
mation, room assignments, or fee calculations. These errors can result in confusion, miscom-
munication, and dissatisfaction among students and staff.

3. Lack of Real-Time Data Access

- Delayed Information: In a traditional system, admins and students don’t have access to real-
time data. Room availability, booking status, and fee updates may not be updated instantly,
causing miscommunications and booking conflicts.
- Inability to Monitor Operations Efficiently: Admins struggle to get real-time insights into

4. Poor Data Security and Privacy

- Risk of Data Loss: Physical records and spreadsheets are susceptible to loss, theft, or dam-
age. Important student and financial data could be lost in the event of accidents, theft, or sys-
tem failure.

- Unauthorized Access: Without secure login systems or role-based access controls, sensitive
student information may be accessed by unauthorized personnel, compromising privacy and
security.

5. Difficulty in Handling Complaints and Feedback

- Manual Complaint Tracking: Complaints are typically handled through paper-based records
or informal communication methods (e.g., emails, verbal complaints), which makes it diffi-
cult to track the status of complaints or ensure timely resolutions.

- Lack of Feedback System: Without a structured feedback mechanism, hostel management


may not effectively understand students’ concerns, preferences, or suggestions, which im-
pacts the quality of services provided.

6. Ineffective Communication Between Admin and Students

- Slow Response Times: Manual communication methods like phone calls, in-person meet-
ings, or emails often lead to slow response times, which could frustrate students and delay
action on requests, bookings, or complaints.

DEPARTMENT OF COMPUTER APPLICATIONS 8 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

- No Centralized Communication Platform: Students and admins lack a single platform to


manage all communications, complaints, and requests, making interactions more disjointed.

- Handling Growing Numbers: As the hostel grows (e.g., more rooms, more students), a man-
ual system becomes less manageable. The increasing volume of data (student profiles, book-
ings, fees, etc.) can overwhelm the existing infrastructure, leading to slower operations and
potential data inconsistencies.

7. Limited Scalability

- Difficult to Integrate: Manual systems often lack the flexibility to integrate with other mod-
ern tools or services (e.g., online payment gateways, student databases, or external applica-
tions), limiting the ability to adapt to new requirements.

2.3 PROPOSED SYSTEM


“HOSTEL MANAGEMENT SYSTEM” is software developed for managing various activities in
the hostel. For the past few years, the number of educational institutions is increasing rapidly.
Thereby the number of hostels is also increasing for the accommodation of the students studying
in this institution. And hence there is a lot of strain on the person who are running the hostel and
software’s are not usually used in this context. This particular project deals with the problems on
managing a hostel and avoids the problems which occur when carried manually.

2.3.1 ADVANTAGES OF PROPOSED SYSEM

1. Improved Efficiency:

- Automated processes such as room allocation, student registration, fee management, and
complaints handling reduce manual effort, save time, and eliminate human errors

- Tasks like generating reports, printing student profiles, or tracking payments can be done at
the click of a button, leading to faster decision-making.

2. Centralized Data Management:

- All student and hostel-related information is stored in a centralized database, making it easy
for administrators to access and manage data from a single location.

3. Real-Time Access and Updates:

DEPARTMENT OF COMPUTER APPLICATIONS 9 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

- Real-time data updates -enable both the admin and students to view current room availabil-
ity, booking status, and feedback, reducing conflicts and confusion.

4. Better Resource Management:

- Admins can efficiently manage room availability, assign rooms based on occupancy.

- Students can select rooms based on availability and preferences, ensuring fair distribution
and reducing room allocation disputes.

5. Enhanced Security:

- Role-based access control ensures that only authorized users (admins and students) can ac-
cess specific features and data.

- Password encryption and secure login mechanisms safeguard sensitive information, reduc-
ing the risk of data breaches.

- Secure backup mechanisms protect critical data from loss.

6. Reduced Administrative Workload:

- The system automates routine tasks like fee tracking, student registration, and room alloca-
tion, which reduces the administrative burden on staff and minimizes the need for manual
interventions.

- Admins can focus on higher-level tasks such as managing complaints, overseeing hostel
maintenance, and improving student services.

7. Efficient Complaint and Feedback Handling:

- The system allows for easy submission and tracking of complaints, enabling faster resolu-
tions.

- Feedback can be gathered and analysed to continuously improve hostel services, ensuring
that students have a better experience during their stay.

- students and admins through features like feedback forms, complaints submission

8. Cost Savings:

- Reduced paper usage and manual record-keeping result in cost savings on printing and stor-
age.

- Administrative costs decrease as the need for manual labour in managing student profiles,
bookings, and finances is minimized.

DEPARTMENT OF COMPUTER APPLICATIONS 10 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

2.4 FEASIBILITY STUDY


All projects are feasible when given unlimited resource and infinite time. It is both necessary and
prudent to evaluate the feasibility of a project at the earliest possible time. An estimate is made
of whether the identified user need may be satisfied using current software and hardware
technologies. The study will decide if the proposed system will be cast effective for the business
point of view and if it can be developed in the given existing budgetary constraints. The
feasibility study should be relatively cheap and quick. The result should inform the decision of
whether to go ahead with a more detailed analysis.

• Technical feasibility
• Economic feasibility
• Operational feasibility

2.4.1 TECHNICAL FEASIBILITY


The technical feasibility in the proposed system deals with the technology used in the system. It
deals with the hardware and software used in the system whether they are of latest technology or
not and if it happens that after a system is prepared, a new technology arises and the user wants
the system based on that technology. This system uses windows platform, Apache XAMPP
server, MySQL for database, PHP as the language and html or xml as user interface. Thus, Hostel
management system is technically feasible

2.4.2 ECONOMIC FEASIBILITY


Economic analysis is the most frequently used method for evaluating the effectiveness of a new
system. More commonly known as cost/benefit analysis. PHP, html, xml and MySQL database
are easily available on internet

2.4.3 OPERATIONAL FEASIBILITY


The purpose of operational feasibility study is to determine whether the new system will be used if
it is developed and implemented. Our system will operate after it is developed and be operative
once it installed. This type is operatable by the user easily. This system is operationally feasible.

2.5 SOFTWARE ENGINEERING PARADIGM APPLIED


In a Hostel Management System using the Waterfall model, the development process is sequential

DEPARTMENT OF COMPUTER APPLICATIONS 11 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

and consists of distinct phases. Here’s how it typically works:


1. Requirements Analysis:
Objective: Gather and document all requirements for the hostel management system.
Activities: Engage with hostel administrators, students to understand their needs and define
functionalities like room allocation, billing, inventory management, and more. Deliverable: A
detailed requirement specification document.
2. System Design:
Objective: Create a blueprint for the system based on the requirements.
Activities: Design system architecture, database schemas, user interfaces, and other technical
aspects.
Deliverable: Design documents, including data models, system architecture diagrams, and
interface designs.
3. Implementation:
Objective: Develop the system based on the design documents.
Activities: Code the application, integrate components, and ensure that the system adheres to the
design specifications.
Deliverable: The completed software application, including both frontend and backend
components.
4. Testing:
Objective: Ensure the system works correctly and meets all requirements.
Activities: Conduct various types of testing (unit testing, integration testing, system testing,
acceptance testing) to identify and fix bugs and verify functionality.
Deliverable: A tested and validated system, free of significant defects.
5. Deployment:
Objective: Release the system for use in the real environment.
Activities: Install the system on the target environment, perform final checks, and provide training
to end users.
Deliverable: A fully operational system in the live environment.
6. Maintenance:
Objective: Provide ongoing support and updates as needed.
Activities: Address issues, perform updates, and make enhancements based on user feedback and
evolving needs.
Deliverable: Updated and maintained system, with any necessary patches or upgrades.

DEPARTMENT OF COMPUTER APPLICATIONS 12 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

CHAPTER 3

SYSTEM DESIGN

DEPARTMENT OF COMPUTER APPLICATIONS 13 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

3.1 INTRODUCTION
System design is the creative act of invention developing new inputs, a database
design files, methods, procedures and output for processing data to meet organization
objectives. The design phase is transition media from user-oriented document to a
document oriented to the programmers or database personnel.
• Acceptability
• Decision making ability
• Flexibility
• Simplicity
The design will determine the success of the system. System design is based the information
gathered during system analysis. System design goes through two phases of development:

• Logical Design - DFD shows the logical flow of system and defines the boundariesof the
system. For a candidate system, it describes the inputs, outputs, database and procedures
all in the format that make user’s requirements.

• Physical Design - This produces the working system by defining the design specifications
that tells programmers exactly what the candidates must do.

3.2 DATABASE DESIGN


Database is an organized collection of data and information or interrelated data collected at one
place. It can be accessed or stored in a computer system. It can bemanaged through a Database
Management System (DBMS), a software used to manage data.
• Admin

• Complain history

• Complaints

• Courses

• Feedback

• User Registration

• Rooms

• User log

• Admin log

DEPARTMENT OF COMPUTER APPLICATIONS 14 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

3.2.1 ENTITY RELATIONSHIP MODEL

An Entity Relationship (ER) Diagram is a type of flowchart that illustrates how entities such as
people, objects or concepts relate to each other within a system. ER Diagrams are most often used
to design or debug relational databases in the fields of software engineering, business information
systems, education and research. Also known as ERDs or ER Models, they use a defined set of
symbols such as rectangles, diamonds, ovals and connecting lines todepict the interconnections
of entities, relationships and their attributes. They mirror grammatical structure, with entities as
nouns and relationships as verbs. Entity relationship diagrams are used in software engineering
during the planning stages of the software project.They help to identify different system elements
and their relationships with each other.

3.3 OBJECT ORIENTED DESIGN

Unified Modelling Language (UML) is a general-purpose modelling language. The main aim of
UML is to define a standard way to visualize the way a system has been designed.It is quite similar
to blueprints used in other fields of engineering. UML is not a programming-language, it is rather

DEPARTMENT OF COMPUTER APPLICATIONS 15 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

a visual language. We use UML diagrams to portray the behaviour and structure of a system. UML
helps software engineers, businessmen and system architects with modelling, design and analysis.
UML is linked with object-orienteddesign and analysis. UML makes the use of elements and forms
associations between them to form diagrams. Diagrams in UML are Class Diagram, Activity
Diagrams, Use Case Diagrams, Sequence Diagram.

3.3.1 ACTIVITY DIAGRAM

Activity diagram is an important diagram in UML to describe the dynamic aspects of the
system. It is basically a flowchart to represent the flow from one activity to another activity.
The activity can be described as an operation of the system. The control flow is drawn from
one operation to another. This flow can be sequential, branched, or concurrent. Activity

DEPARTMENT OF COMPUTER APPLICATIONS 16 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

diagrams deal with all type of flow control by using different elements such as fork, join,
etc.

3.3.2 SEQUENCE DIAGRAM


A sequence diagram is a Unified Modelling Language (UML) diagram that illustrates the
sequence of messages between objects in an interaction. A sequence diagram consists ofa
group of objects that are represented by lifelines, and the messages that they exchange over
time during the interaction.

DEPARTMENT OF COMPUTER APPLICATIONS 17 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

3.3.3 USE CASE DIAGRAM

Use case diagrams are usually referred to as behaviour diagrams used to describe a set of actions
(use cases) that some system or systems (subject) should or can perform in collaboration with
one or more external users of the system (actors). Each use case should provide some observable
and valuable result to the actors or other stakeholders of the system.

DEPARTMENT OF COMPUTER APPLICATIONS 18 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

3.4 INPUT DESIGN

DEPARTMENT OF COMPUTER APPLICATIONS 19 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

3.5 OUTPUT DESIGN

DEPARTMENT OF COMPUTER APPLICATIONS 20 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

DEPARTMENT OF COMPUTER APPLICATIONS 21 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

CHAPTER 4
SYSTEM ENVIORNMENT

DEPARTMENT OF COMPUTER APPLICATIONS 22 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

4.1 INTRODUCTION

The system environment for the Hostel Management System (HMS) is composed of the following
components:

1. Hardware: This includes the servers, computers, and mobile devices used by both admins
and students to access the system. The servers will host the application and database, while
users (admins and students) will access the system from their desktop computers, laptops, or
mobile devices.

2. Operating System: A stable and secure operating system such as Windows, Linux, or
MacOS is required to run the Hostel Management System efficiently. The system should be
compatible with commonly used operating systems to ensure accessibility across different
platforms.

3. Database: A database management system like MySQL, Oracle, or SQL Server is essential
to store and manage data related to students, rooms, fees, complaints, feedback, and other
hostel-related information. The database ensures that all data is structured, easily retrievable,
and secure.

4. Web Server: A web server like Apache or IIS is required to host the Hostel Management
System and make it accessible over the internet. The web server ensures that the application
is available to users at any time through their web browsers.

5. Application Server: An application server such as Tomcat or JBoss is needed to execute the
application logic of the Hostel Management System. It handles requests from the client-side,
processes them, and returns the appropriate results to users.

6. Web Browser: A web browser such as Google Chrome, Mozilla Firefox, or Safari is required
by the users (both admins and students) to access the Hostel Management System online.
The web browser allows users to interact with the system via its graphical interface.

7. Network: A stable and secure network infrastructure is necessary to ensure smooth and fast
transmission of data between the various components of the system. This network enables
seamless communication between the client (users), the web server, application server, and
database, ensuring the system functions efficiently.

DEPARTMENT OF COMPUTER APPLICATIONS 23 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

4.2 SOFTWARE REQUIREMENTS SPECIFICATION

Software configuration is the software environment in which the project was shaped. The
programming language used, tools etc. are described here

• Operating system - Windows 7,8,10,11

• Frond end – HTML, CSS, JAVASCRIPT

• Back end – PHP, MYSQL

• Server - Wamp or Xampp

4.3 HARDWARE REQUIREMENTS SPECIFICATION


Selection of hardware configuration is very important task related to the software development.
Insufficient random-access memory may affect adversely on the speed and efficiency of the entire
project.

• Processor - 15 or Higher

• Memory - 4GB RAM

• Hard Disk - 100 GB HDD FREE SPACE

• Key Board – 101-key

4.4 TOOLS, PLATFORMS


Tool, Platforms selection is the important task related to the software development. Some tools
are easy to use and some platforms are portable and easy to use, if we choose developing
software first all we have to select the tools and platforms.

4.4.1 Front End Tools

HTML (Hypertext Markup Language)

It is the standard markup language used to create and design documents on the World Wide
Web. It serves as the backbone of web development and provides a structure for creating con-
tent on web pages.

Here's a brief overview of HTML:

DEPARTMENT OF COMPUTER APPLICATIONS 24 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

Document Structure:

HTML documents are plain text files with a .html extension.

The basic structure includes an opening <html> tag and a closing </html> tag.
Within the <html> tags, you have <head> and <body> sections.
Head Section:

The <head> section contains meta-information about the document, such as the title,
character set, and links to external resources.

The title of the page is defined with the <title> tag. Body
Section:
The <body> section contains the content of the document. Content
is structured using various HTML elements and tags. HTML Ele-
ments:
HTML elements consist of opening tags, content, and closing tags. Example:
<p>This is a paragraph.</p>
Common HTML Elements:

<h1> to <h6>: Headings (largest to smallest)

<p>: Paragraph

<a>: Anchor (for links)

<img>: Image

<ul>, <ol>, <li>: Unordered list, Ordered-list, List item

<table>, <tr>, <td>: Table, Table row, Table cell

<div>: Division or container

<span>: Inline container

<form>, <input>, <button>: Form, Input field, Button


Attributes:
HTML elements can have attributes that provide additional information. Example:
<a href="https://example.com">Visit Example</a>
Links and Navigation:

DEPARTMENT OF COMPUTER APPLICATIONS 25 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

Hyperlinks are created using the <a> tag.

Navigation is facilitated through elements like <nav> and list items. Images:
Images are added using the <img> tag, with the source (src) attribute pointing to the image
file.

Lists:

Lists can be either unordered (<ul>) or ordered (<ol>), containing list items (<li>). Ta-
bles:
Tables are created using the <table>, <tr>, and <td> tags for rows and cells.
Forms:
Forms are constructed using the <form> tag, with input fields, buttons, and other form
elements.

Comments:

Comments in HTML are written between <!-- and --> and are not displayed on the webpage.

HTML provides the basic structure and content for web pages, and it is often combined with
CSS (Cascading Style Sheets) and JavaScript to enhance the presentation and interactivity of
websites

CSS (Cascading Style Sheets)


It is a stylesheet language used to control the presentation and layout of HTML documents on the
web. It enhances the visual appearance of web pages by defining how elements should be
displayed. Here's a brief overview of CSS:

Selectors:

CSS uses selectors to target HTML elements for styling.

Example: h1 { color: blue; } selects all <h1> elements and sets their text color to blue.
Properties:
CSS properties define the style of the selected elements. Example:
color, font-size, margin, padding, etc.
Values:
Properties are assigned values that determine the specific style. Example: font-size: 16px;, color:
#ff0000;, margin: 10px; Selectors and Declarations:

DEPARTMENT OF COMPUTER APPLICATIONS 26 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

CSS rules consist of selectors and declarations. Selector:


Identifies the HTML element to be styled.
Declaration: Consists of one or more property-value pairs. Classes
and IDs:
Classes (.classname) and IDs (#idname) are used to apply styles to specific elements.
Classes are reusable, while IDs should be unique on a page.
Box Model:

The box model describes how elements are laid out in terms of content, padding, border, and
margin.

CSS properties like width, height, padding, border, and margin control the box model.
Layout:
CSS allows for the creation of flexible and responsive layouts.

Properties like display, position, float, and flex are used for layout control. Colors:
Colors can be specified using names, hexadecimal codes (#rrggbb), RGB values, or HSL val-
ues.

Example: color: red; background-color: #00ff00; Fonts:


CSS provides properties for controlling the font type, size, weight, and style. Ex-
ample: font-family, font-size, font-weight
Selectors Hierarchy and Specificity:

The hierarchy of selectors and their specificity determine which styles take precedence.
More specific selectors override least specific ones.
Transitions and Animations:

CSS allows for smooth transitions and animations between different states of an element.
Properties like transition and animation are used for this purpose.
Media Queries:

Media queries enable the creation of responsive designs that adapt to different screen sizes
and devices.

CSS styles can be adjusted based on conditions like screen width.

CSS works in conjunction with HTML to separate content and presentation, providing greater
flexibility and maintainability in web development.

DEPARTMENT OF COMPUTER APPLICATIONS 27 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

JAVASCRIPT

JavaScript is a lightweight, cross-platform, and interpreted compiled programming language


which is also known as the scripting language for webpages. It is well-known for the develop-
ment of web pages, many non-browser environments also use it. JavaScript can be used for
Client-side developments as well as Server-side developments. JavaScript is both and declara-
tive type of language. JavaScript contains a standard library of objects, like Array, Date, and
Math, and a core set of language elements like operators, control structures, and statements.

JavaScript can be added to your HTML file in two ways:


• Internal JS
• External JS

Features of JavaScript:
• JavaScript was created in the first place for DOM manipulation. Earlier websites
were mostly static, after JS was created dynamic Web sites were made.
• Functions in JS are objects. They may have properties and methods just like another
object. They can be passed as arguments in other functions.
• Can handle date and time.
• Performs Form Validation although the forms are created using HTML.
• No compiler is needed.

4.4.2 Back End Tool

PHP

PHP: Hypertext Pre-processor (or simply PHP) is a general-purpose programming language origi-
nally designed for web development. It was created by Ramus Lerdorf in1994. The PHP refer-
ences implementation is now produced by The PHP Group. PHP originally stood for Personal
Home Page, but it now stands for the recursive initialism PHP: Hypertext Pre-processor.

PHP code may be executed with a command-line interface (CLI), embedded into HTML code,
or used in combination with various web template systems, web content management systems,
and web frameworks. PHP code is usually processed by a PHP interpreter implemented as a
module in a web server or as a common gateway interface (CGI) executable. The web server
outputs the results of the interpreted and executed PHP code, which may be any type of data,
such as generated HTML code or binary image data. PHP can be used for many programming

DEPARTMENT OF COMPUTER APPLICATIONS 28 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

tasks outside of the web context, such as standalone graphical applications and robotic drone
control.

OVERVIEW OF MYSQL

MySQL is a relational database that organizes data based on the relationships between tables
and fields. It is a type of Relational Data Base Management System (RDBMS), which stores
entries as rows within tables. Each row consists of a number of columns, which represent the
different attributes of the data record. The database-specific SQL programming language is
used to store and retrieve data from MySQL. SQL uses a series of discrete statements and is
intended to work with RDBMS systems. MySQL is known for its ability to store large tables
and vast amounts of data, as well as for its speed and reliability. It provides APIs for many
common programming languages and is packaged with several useful utilities. The MySQL
server stores data and response to requests from MySQL clients. The client is always packaged
with the server, but it can be used as a stand-alone application to communicate with remote da-
tabases. MySQL is used in many widely-known companies and is essential for those who want
to use Word Press. However, it is also used in web databases and data warehousing.
4.1.1 OPERATING SYSTEM

Windows is an operating system designed by Microsoft. The operating system is what allows
you to use a computer. Windows comes preloaded on most new personal computers (PCs),
which helps to make it the most popular operating system in the world.

Windows makes it possible to complete all types of everyday tasks on your computer. For ex-
ample, you can use Windows to browse the Internet, check your email, edit digital photos, lis-
ten to music, play games, and do much more.

Windows is also used in many offices because it gives you access to productivity tools such
as calendars, word processors, and spreadsheets. Microsoft released the first version of

Windows in the mid-1980s. There have been many versions of Windows since then, but the
most recent ones include Windows 10 (released in 2015), Windows 8 (2012), Windows 7
(2009), Windows Vista (2007), and Windows XP (2001). In this system environment we are
using windows 10. Every software tools are working well in this software development

DEPARTMENT OF COMPUTER APPLICATIONS 29 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

CHAPTER 5

SYSTEM IMPLEMENTATION

DEPARTMENT OF COMPUTER APPLICATIONS 30 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

5.1 INTRODUCTION

The implementation process begins with preparing a plan for the implementation of the sys-
tem. According to this plan, the activities are to be carried out, discussions made regarding
the equipment and resources and the additional equipment has to be acquired to implement
the new system. Implementation is the final and important phase. The system can be imple-
mented only after thorough testing is done and it is found to working according to the speci-
fication. This method also offers the greatest security since the old system can take over if the
errors are found or inability to handle certain type of transactions while using the new system.

The implementation plan includes a description of all activities that must occur to implement
the system and to put into operation. It indicates the personal responsible for the activities
and prepares a time chart for implementing the system.

The implementation plan consists of the following steps:


● List all files required for implementation.
● Identify all data required to build new files during the implementation.
● List all new documents and procedures that go into the new system.

The implemented system has the following features:


● Reduce data redundancy.
● Controlled flow.
● Ease of use.
● Simplifies the management activities.

A critical phase in the system life cycle is the successful implementation of the new system de-
sign. Implementation include all those activities that take place to convert the old system to
new one. It is primarily concerned with user training, site preparation and fail conversion. The
new system may be completely new, replacing and existing manual or automated system or it
may be major modification to existing. In either case, proper implementation becomes neces-
sary so that a reliable system based on the requirements of the organization can be provided.
Successful implementation may not guarantee improvements in the organization using the new
system, but improper installation can be prevented. The only training required to operate this
system is to develop a familiarity with the various features of the system and how to use it.

DEPARTMENT OF COMPUTER APPLICATIONS 31 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

The user where trained to enter the correct data in the correct places. No special training, other
than this is required to operate the system. A person with little computer knowledge can oper-
ate the system. This is an area where the system analysts need to work with at most care

The following are the steps involved in the implementation plan:


1. Test system with sample data.
2. Detection and correction of errors.
3. Make the necessary changes in the system.
4. Check the existing system.
5. Installation of hardware and software utilities.
6. Training and involvement of user personals

5.2 CODING SAMPLE CODES (CORE FORMS)

index.php

<?php
session_start();
include('includes/config.php');
if(isset($_POST['login']))
{
$emailreg=$_POST['emailreg'];
$password=$_POST['password'];
$stmt=$mysqli->prepare("SELECT email,password,id FROM userregistration WHERE (email=?
|| regNo=?) and password=? ");
$stmt->bind_param('sss',$emailreg,$emailreg,$password);
$stmt->execute();
$stmt -> bind_result($email,$password,$id);
$rs=$stmt->fetch();
$stmt->close();
$_SESSION['id']=$id;
$_SESSION['login']=$emailreg;
$uip=$_SERVER['REMOTE_ADDR'];
$ldate=date('d/m/Y h:i:s', time());
if($rs)

DEPARTMENT OF COMPUTER APPLICATIONS 32 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

{
$uid=$_SESSION['id'];
$uemail=$_SESSION['login'];
$ip=$_SERVER['REMOTE_ADDR'];
$geopluginURL='http://www.geoplugin.net/php.gp?ip='.$ip;
$addrDetailsArr = unserialize(file_get_contents($geopluginURL));
$city = $addrDetailsArr['geoplugin_city'];
$country = $addrDetailsArr['geoplugin_countryName'];
$log="insert into userLog(userId,userEmail,userIp,city,country)
values('$uid','$uemail','$ip','$city','$country')";
$mysqli->query($log);
if($log)
{
header("location:dashboard.php");
}
}
else
{
echo "<script>alert('Invalid Username/Email or password');</script>";
}
}
?>

<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1,
maximum-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<meta name="theme-color" content="#3e454c">

DEPARTMENT OF COMPUTER APPLICATIONS 33 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

<title>Student Hostel Registration</title>


<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/dataTables.bootstrap.min.css">>
<link rel="stylesheet" href="css/bootstrap-social.css">
<link rel="stylesheet" href="css/bootstrap-select.css">
<link rel="stylesheet" href="css/fileinput.min.css">
<link rel="stylesheet" href="css/awesome-bootstrap-checkbox.css">
<link rel="stylesheet" href="css/style.css">
<script type="text/javascript" src="js/jquery-1.11.3-jquery.min.js"></script>
<script type="text/javascript" src="js/validation.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script>
<script type="text/javascript">
function valid()
{
if(document.registration.password.value!= document.registration.cpassword.value)
{
alert("Password and Re-Type Password Field do not match !!");
document.registration.cpassword.focus();
return false;
}
return true;
}
</script>
</head>
<body>
<?php include('includes/header.php');?>
<div class="ts-main-content">
<?php include('includes/sidebar.php');?>
<div class="content-wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">

DEPARTMENT OF COMPUTER APPLICATIONS 34 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

<h2 class="page-title">User Login </h2>


<div class="row">
<div class="col-md-6 col-md-offset-3">
<div class="well row pt-2x pb-3x bk-light">
<div class="col-md-8 col-md-offset-2">
<form action="" class="mt" method="post">
<label for="" class="text-uppercase text-sm">Email / Registration
Number</label>
<input type="text" placeholder="Email / Registration Number"
name="emailreg" class="form-control mb" required="true">
<label for="" class="text-uppercase text-sm">Password</label>
<input type="password" placeholder="Password" name="password"
class="form-control mb" required="true">

<input type="submit" name="login" class="btn btn-primary btn-block"


value="login" >
</form>
</div>
</div>
<div class="text-center text-light" style="color:black;">
<a href="forgot-password.php" style="color:black;">Forgot password?</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="js/jquery.min.js"></script>

DEPARTMENT OF COMPUTER APPLICATIONS 35 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

<script src="js/bootstrap-select.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.dataTables.min.js"></script>
<script src="js/dataTables.bootstrap.min.js"></script>
<script src="js/Chart.min.js"></script>
<script src="js/fileinput.js"></script>
<script src="js/chartData.js"></script>
<script src="js/main.js"></script>
</body>
</html>

login.php

<?php

session_start();

include('includes/config.php');

if(isset($_POST['login']))

$email=$_POST['email'];

$password=$_POST['password'];

$stmt=$mysqli->prepare("SELECT email,password,id FROM userregistration WHERE email=?


and password=? ");

$stmt->bind_param('ss',$email,$password);

$stmt->execute();

$stmt -> bind_result($email,$password,$id);

$rs=$stmt->fetch();

$stmt->close();

$_SESSION['id']=$id;

$_SESSION['login']=$email;

$uip=$_SERVER['REMOTE_ADDR'];

DEPARTMENT OF COMPUTER APPLICATIONS 36 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

$ldate=date('d/m/Y h:i:s', time());

if($rs)

$uid=$_SESSION['id'];

$uemail=$_SESSION['login'];

$ip=$_SERVER['REMOTE_ADDR'];

$geopluginURL='http://www.geoplugin.net/php.gp?ip='.$ip;

$addrDetailsArr = unserialize(file_get_contents($geopluginURL));

$city = $addrDetailsArr['geoplugin_city'];

$country = $addrDetailsArr['geoplugin_countryName'];

$log="insert into userLog(userId,userEmail,userIp,city,country)


values('$uid','$uemail','$ip','$city','$country')";

$mysqli->query($log);

if($log)

header("location:dashboard.php");

else

echo "<script>alert('Invalid Username/Email or password');</script>";

?>

<!doctype html>

<html lang="en" class="no-js">

DEPARTMENT OF COMPUTER APPLICATIONS 37 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

<head>

<meta charset="UTF-8">

<meta http-equiv="X-UA-Compatible" content="IE=edge">

<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1,


maximum-scale=1">

<meta name="description" content="">

<meta name="author" content="">

<meta name="theme-color" content="#3e454c">

<title>Student Hostel Registration</title>

<link rel="stylesheet" href="css/font-awesome.min.css">

<link rel="stylesheet" href="css/bootstrap.min.css">

<link rel="stylesheet" href="css/dataTables.bootstrap.min.css">>

<link rel="stylesheet" href="css/bootstrap-social.css">

<link rel="stylesheet" href="css/bootstrap-select.css">

<link rel="stylesheet" href="css/fileinput.min.css">

<link rel="stylesheet" href="css/awesome-bootstrap-checkbox.css">

<link rel="stylesheet" href="css/style.css">

<script type="text/javascript" src="js/jquery-1.11.3-jquery.min.js"></script>

<script type="text/javascript" src="js/validation.min.js"></script>

<script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script>

<script type="text/javascript">

function valid()

if(document.registration.password.value!= document.registration.cpassword.value)

alert("Password and Re-Type Password Field do not match !!");

document.registration.cpassword.focus();

DEPARTMENT OF COMPUTER APPLICATIONS 38 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

return false;

return true;

</script>

</head>

<body>

<?php include('includes/header.php');?>

<div class="ts-main-content">

<?php include('includes/sidebar.php');?>

<div class="content-wrapper">

<div class="container-fluid">

<div class="row">

<div class="col-md-12">

<h2 class="page-title">User Login </h2>

<div class="row">

<div class="col-md-6 col-md-offset-3">

<div class="well row pt-2x pb-3x bk-light">

<div class="col-md-8 col-md-offset-2">

<form action="" class="mt" method="post">

<label for="" class="text-uppercase text-sm">Email</label>

<input type="text" placeholder="Email" name="email" class="form-


control mb">

<label for="" class="text-uppercase text-sm">Password</label>

<input type="password" placeholder="Password" name="password"


class="form-control mb">

<input type="submit" name="login" class="btn btn-primary btn-block"


value="login" >

DEPARTMENT OF COMPUTER APPLICATIONS 39 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

</form>

</div>

</div>

<div class="text-center text-light">

<a href="forgot-password.php" class="text-light">Forgot password?</a>

</div>

</div>

</div>

</div>

</div>

</div>

</div>

</div>

</div>

</div>

</div>

<script src="js/jquery.min.js"></script>

<script src="js/bootstrap-select.min.js"></script>

<script src="js/bootstrap.min.js"></script>

<script src="js/jquery.dataTables.min.js"></script>

<script src="js/dataTables.bootstrap.min.js"></script>

<script src="js/Chart.min.js"></script>

<script src="js/fileinput.js"></script>

<script src="js/chartData.js"></script>

<script src="js/main.js"></script>

</body>

</html>

DEPARTMENT OF COMPUTER APPLICATIONS 40 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

registration.php

<?php
session_start();
include('includes/config.php');
if(isset($_POST['submit']))
{
$regno=$_POST['regno'];
$fname=$_POST['fname'];
$mname=$_POST['mname'];
$lname=$_POST['lname'];
$gender=$_POST['gender'];
$contactno=$_POST['contact'];
$emailid=$_POST['email'];
$password=$_POST['password'];
$result ="SELECT count(*) FROM userRegistration WHERE email=? || regNo=?";
$stmt = $mysqli->prepare($result);
$stmt->bind_param('ss',$email,$regno);
$stmt->execute();
$stmt->bind_result($count);
$stmt->fetch();
$stmt->close();
if($count>0)
{
echo"<script>alert('Registration number or email id already registered.');</script>";
}else{
$query="insert
into userRegistration(regNo,firstName,middleName,lastName,gender,contactNo,email,passwor
d) values(?,?,?,?,?,?,?,?)";
$stmt = $mysqli->prepare($query);
$rc=$stmt->bind_param('sssssiss',$regno,$fname,$mname,$lname,$gender,$contactno,$emailid,
$password);
$stmt->execute();
echo"<script>alert('Student Succssfully register');</script>";

DEPARTMENT OF COMPUTER APPLICATIONS 41 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

}
}
?>

<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1,
maximum-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<meta name="theme-color" content="#3e454c">
<title>User Registration</title>
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/dataTables.bootstrap.min.css">>
<link rel="stylesheet" href="css/bootstrap-social.css">
<link rel="stylesheet" href="css/bootstrap-select.css">
<link rel="stylesheet" href="css/fileinput.min.css">
<link rel="stylesheet" href="css/awesome-bootstrap-checkbox.css">
<link rel="stylesheet" href="css/style.css">
<script type="text/javascript" src="js/jquery-1.11.3-jquery.min.js"></script>
<script type="text/javascript" src="js/validation.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script>
<script type="text/javascript">
function valid()
{
if(document.registration.password.value!= document.registration.cpassword.value)
{
alert("Password and Re-Type Password Field do not match !!");
document.registration.cpassword.focus();

DEPARTMENT OF COMPUTER APPLICATIONS 42 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

return false;
}
return true;
}
</script>
</head>
<body>
<?php include('includes/header.php');?>
<div class="ts-main-content">
<?php include('includes/sidebar.php');?>
<div class="content-wrapper">
<div class="container-fluid">

<div class="row">
<div class="col-md-12">

<h2 class="page-title">Student Registration </h2>

<div class="row">
<div class="col-md-12">
<div class="panel panel-primary">
<div class="panel-heading">Fill all Info</div>
<div class="panel-body">
<form method="post" action="" name="registration" class="form-horizontal"
onSubmit="return valid();"
<div class="form-group">
<label class="col-sm-2 control-label"> Registration No : </label>
<div class="col-sm-8">
<input type="text" name="regno" id="regno" class="form-control" required="required"
onBlur="checkRegnoAvailability()">
<span id="user-reg-availability" style="font-size:12px;"></span>
</div>
</div>

DEPARTMENT OF COMPUTER APPLICATIONS 43 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

<div class="form-group">
<label class="col-sm-2 control-label">First Name : </label>
<div class="col-sm-8">
<input type="text" name="fname" id="fname" class="form-control" required="required" >
</div>
</div>

<div class="form-group">
<label class="col-sm-2 control-label">Middle Name : </label>
<div class="col-sm-8">
<input type="text" name="mname" id="mname" class="form-control">
</div>
</div>

<div class="form-group">
<label class="col-sm-2 control-label">Last Name : </label>
<div class="col-sm-8">
<input type="text" name="lname" id="lname" class="form-control" required="required">
</div>
</div>

<div class="form-group">
<label class="col-sm-2 control-label">Gender : </label>
<div class="col-sm-8">
<select name="gender" class="form-control" required="required">
<option value="">Select Gender</option>
<option value="male">Male</option>
<option value="female">Female</option>
<option value="others">Others</option>
</select>
</div>
</div>

<div class="form-group">

DEPARTMENT OF COMPUTER APPLICATIONS 44 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

<label class="col-sm-2 control-label">Contact No : </label>


<div class="col-sm-8">
<input type="text" name="contact" id="contact" class="form-control" required="required">
</div>
</div>

<div class="form-group">
<label class="col-sm-2 control-label">Email id: </label>
<div class="col-sm-8">
<input type="email" name="email" id="email" class="form-control"
onBlur="checkAvailability()" required="required">
<span id="user-availability-status" style="font-size:12px;"></span>
</div>
</div>

<div class="form-group">
<label class="col-sm-2 control-label">Password: </label>
<div class="col-sm-8">
<input type="password" name="password" id="password" class="form-control"
required="required">
</div>
</div>

<div class="form-group">
<label class="col-sm-2 control-label">Confirm Password : </label>
<div class="col-sm-8">
<input type="password" name="cpassword" id="cpassword" class="form-control"
required="required">
</div>
</div>

<div class="col-sm-6 col-sm-offset-4">


<button class="btn btn-default" type="reset">Reset</button>
<input type="submit" name="submit" Value="Register" class="btn btn-primary">

DEPARTMENT OF COMPUTER APPLICATIONS 45 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

</div>
</form>

</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap-select.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.dataTables.min.js"></script>
<script src="js/dataTables.bootstrap.min.js"></script>
<script src="js/Chart.min.js"></script>
<script src="js/fileinput.js"></script>
<script src="js/chartData.js"></script>
<script src="js/main.js"></script>
</body>
<script>
function checkAvailability() {

$("#loaderIcon").show();
jQuery.ajax({
url: "check_availability.php",
data:'emailid='+$("#email").val(),
type: "POST",
success:function(data){

DEPARTMENT OF COMPUTER APPLICATIONS 46 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

$("#user-availability-status").html(data);
$("#loaderIcon").hide();
},
error:function ()
{
event.preventDefault();
alert('error');
}
});
}
</script>
<script>
function checkRegnoAvailability() {

$("#loaderIcon").show();
jQuery.ajax({
url: "check_availability.php",
data:'regno='+$("#regno").val(),
type: "POST",
success:function(data){
$("#user-reg-availability").html(data);
$("#loaderIcon").hide();
},
error:function ()
{
event.preventDefault();
alert('error');
}
});
}
</script>
</html>

create-room.php

DEPARTMENT OF COMPUTER APPLICATIONS 47 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

<?php session_start();
error_reporting(0);
include('includes/config.php');
include('includes/checklogin.php');
check_login();
//code for add courses
if(isset($_POST['submit']))
{
$seater=$_POST['seater'];
$roomno=$_POST['rmno'];
$fees=$_POST['fee'];
$sql="SELECT room_no FROM rooms where room_no=?";
$stmt1 = $mysqli->prepare($sql);
$stmt1->bind_param('i',$roomno);
$stmt1->execute();
$stmt1->store_result();
$row_cnt=$stmt1->num_rows;;
if($row_cnt>0)
{
echo"<script>alert('Room alreadt exist');</script>";
}
else
{
$query="insert into rooms (seater,room_no,fees) values(?,?,?)";
$stmt = $mysqli->prepare($query);
$rc=$stmt->bind_param('iii',$seater,$roomno,$fees);
$stmt->execute();
echo"<script>alert('Room has been added successfully');</script>";
}
}
?>
<!doctype html>
<html lang="en" class="no-js">
<head>

DEPARTMENT OF COMPUTER APPLICATIONS 48 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1,
maximum-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<meta name="theme-color" content="#3e454c">
<title>Create Room</title>
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/dataTables.bootstrap.min.css">>
<link rel="stylesheet" href="css/bootstrap-social.css">
<link rel="stylesheet" href="css/bootstrap-select.css">
<link rel="stylesheet" href="css/fileinput.min.css">
<link rel="stylesheet" href="css/awesome-bootstrap-checkbox.css">
<link rel="stylesheet" href="css/style.css">
<script type="text/javascript" src="js/jquery-1.11.3-jquery.min.js"></script>
<script type="text/javascript" src="js/validation.min.js"></script>
</head>
<body>
<?php include('includes/header.php');?>
<div class="ts-main-content">
<?php include('includes/sidebar.php');?>
<div class="content-wrapper">
<div class="container-fluid">

<div class="row">
<div class="col-md-12">

<h2 class="page-title">Add a Room </h2>

<div class="row">
<div class="col-md-12">

DEPARTMENT OF COMPUTER APPLICATIONS 49 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

<div class="panel panel-default">


<div class="panel-heading">Add a Room</div>
<div class="panel-body">
<?php if(isset($_POST['submit']))
{ ?>
<p style="color: red"><?php echo htmlentities($_SESSION['msg']); ?><?php echo
htmlentities($_SESSION['msg']=""); ?></p>
<?php } ?>
<form method="post" class="form-horizontal">
<div class="hr-dashed"></div>
<div class="form-group">
<label class="col-sm-2 control-label">Select Seater </label>
<div class="col-sm-8">
<Select name="seater" class="form-control" required>
<option value="">Select Seater</option>
<option value="1">Single Seater</option>
<option value="2">Two Seater</option>
<option value="3">Three Seater</option>
<option value="4">Four Seater</option>
<option value="5">Five Seater</option>
</Select>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Room No.</label>
<div class="col-sm-8">
<input type="text" class="form-control" name="rmno" id="rmno" value=""
required="required">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Fees (Per Student)</label>
<div class="col-sm-8">

DEPARTMENT OF COMPUTER APPLICATIONS 50 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

<input type="text" class="form-control" name="fee" id="fee" value="" required="required">


</div>
</div>

<div class="col-sm-8 col-sm-offset-2">


<input class="btn btn-primary" type="submit" name="submit" value="Create Room ">
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap-select.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.dataTables.min.js"></script>
<script src="js/dataTables.bootstrap.min.js"></script>
<script src="js/Chart.min.js"></script>
<script src="js/fileinput.js"></script>
<script src="js/chartData.js"></script>
<script src="js/main.js"></script>
</script>
</body>
</html>

DEPARTMENT OF COMPUTER APPLICATIONS 51 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

5.3 CODE VALIDATION AND OPTIMIZATION


VALIDATION

The evolution of software and hardware technologies permits for complex software applications
in the present, but also with great requirements for processing speed and memory usage. Software
applications included in this category are operating systems, entertainment applications and multi-
media applications. With all this waste of resources, transparent to the user, the developer gives
particular importance to the optimization process, looking to maximize the performance of the
final product. The objective of software optimization is to obtain a new product or a new version
of an existing product, which presents a higher quality level. This grade is worked out based on the
levels obtained from the set of software characteristics or the established optimum criteria. These
are well defined and are followed throughout the whole process, directly measuring the obtained
levels. By direct comparison to the base levels or by determining aggregated values based on the
way multi-criteria models are composed, the level of improvement is obtained. One such model,
permits determining an aggregated quality level which measures the effects of multi-criteria opti-
mization. After the system implementation, the system is logically equivalent to the user require-
ments, so code validation and optimization is successfully validated against the system.

DEPARTMENT OF COMPUTER APPLICATIONS 52 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

CHAPTER 6

SYSTEM TESTING

DEPARTMENT OF COMPUTER APPLICATIONS 53 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

6.1. INTRODUCTION
Testing is a set of activities that can be planned and conducted systematically, which is aimed at
ensuring that the system works accurately and efficiently before live operations commence. Soft-
ware testing is the process used to measure the quality of developed computer software. Usually,
quality is constrained to such topics as correctness, completeness, security, but can also include
more technical requirements as described under the ISO standard ISO 9126, such as capability,
reliability, efficiency, portability, maintainability, compatibility, and usability. Testing is a pro-
cess of technical investigation, performed on behalf of stakeholders, that is intended to reveal
quality-related information about the product concerning the context in which it is intended to
operate. An important point is that software testing should be distinguished from the separate
discipline of Software Quality Assurance (SQA), which encompasses all business process areas,
not just testing.

There are many approaches to software testing, but effective testing of complex products is
essentially a process of investigation, not merely a matter of creating and following a routine
procedure. One definition of testing is "the process of questioning a product to evaluate it", where
the "questions" are operations, the tester attempts to execute with the product, and the product
answers with its behaviour in reaction to the probing of the tester.

The primary types of testing procedure include:


• Unit testing
• Integration testing
• System testing

6.2 UNIT TESTING

Unit testing is a fundamental practice in software development that focuses on verifying the cor-
rectness and functionality of individual components or units of code. These units can be func-
tions, methods, or even small modules. The primary goal of unit testing is to ensure that each
unit works as intended and meets the specified requirements.

Developers typically perform unit testing during the early stages of development, before inte-
grating the code into the larger system.

DEPARTMENT OF COMPUTER APPLICATIONS 54 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

1. Isolation and Validation:


➢ During unit testing, each component is tested in isolation from the rest of the
system. This allows developers to focus on specific functionality without inter-
ference from other parts of the code.
➢ The purpose is to validate that the unit behaves correctly, produces the
expected output, and adheres to the defined specifications.

2. Automated Testing:
➢ Unit tests are automated, meaning they can be executed automatically
whenever code changes occur.
➢ Whenever a developer modifies a unit, the associated tests run to ensure that
the changes do not break existing functionality.

Benefits of Unit Testing:


➢ Early Detection of Bugs: By catching issues at the unit level, developers can
address them before they propagate to other parts of the system.
➢ Improved Code Quality: Rigorous testing ensures that individual units are
reliable and robust.
➢ Faster Debugging: When a test fails, developers can pinpoint the problem
quickly, making debugging more efficient.
➢ Code Reusability: Well-tested units can be reused across different parts of the
application.

Types of Unit Testing Techniques:


➢ Black Box Testing: Focuses on input, user interface, and output behavior of the
unit.
➢ White Box Testing: Examines the internal design structure and code of the
unit.
➢ Gray Box Testing: Combines elements of both black box and white box
testing.

Workflow of Unit Testing:


➢ Developers write test cases for each unit, covering various scenarios.

DEPARTMENT OF COMPUTER APPLICATIONS 55 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

➢ They execute the tests to verify that the unit behaves as expected.
➢ If any issues are found, developers fix them promptly.

6.3 INTEGRATION TESTING

Integration testing is a crucial phase in the software testing lifecycle that focuses on the inter-
faces between different software modules. It is performed after unit testing and aims to identify
and rectify issues that arise when individual software modules interact with each other. The pri-
mary objective of integration testing is to ensure the seamless functioning of the software appli-
cation as a whole by validating the communication paths and interactions between components.

Types of Integration Testing


There are four main types of integration testing approaches:
➢ Big-Bang
all modules are integrated simultaneously and then tested. This approach is beneficial when the
project is small and the interactions are simple.
➢ Top-Down
involves testing the system from top to bottom, starting with high-level modules and
gradually integrating lower-level modules.
➢ Bottom-Up
is the opposite of the Top-Down approach, where testing begins with the lower-level
modules and moves upward
➢ Hybrid (also known as Sandwich).
is a combination of Top-Down and Bottom-Up approaches, aiming to leverage the ad-
vantages of both.

Importance of Integration Testing

Integration testing plays a vital role in delivering a robust and reliable software product. It helps
in detecting interface defects and inconsistencies in the data exchange between modules. By
performing integration testing, teams can ensure that the integrated components of the system
work in harmony, thereby reducing the risk of post-deployment failures and enhancing the overall
quality of the software. Furthermore, it aids in identifying and addressing issues early in the
development cycle, which can save time and resources in the long run.

DEPARTMENT OF COMPUTER APPLICATIONS 56 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

6.4 SYSTEM TESTING


When a system is developed it is hoped that it performs properly. In practice however, errors al-
ways occur. The main purpose of testing is to find the errors and correct them.
The main objectives of system testing are:
• To ensure during operation the system will perform as per specifications.
• To verify that the controls incorporated in the system function as intended.
• To see that when correct inputs are fed to the system, then the outputs are correct.
• To make sure that during the operation of incorrect input and then
the output will be deleted.
The scope of a system test should include both manual operations and computerized. Operation
system testing is a comprehensive evaluation of the programs, manual procedures, computer op-
erations and controls. System testing is the process of checking if the developed system is
working according to the original objectives and requirements. All testing needs to be con-
ducted in accordance to the test conditions specified earlier

6.4.1 TEST CASES


TEST CASE: 1

Test Suite ID TS001

Test Case ID TC001

Test Case Summary User Registration in Hostel Management System

Related Requirements User Registration

1. Navigate to the User Registration page.


2. Enter valid details such as Name, Email ID, Password,
Test Procedure
and Contact Details.
3. Click the Submit button to register the user account.

Test Data Ensure valid data is provided for all mandatory fields.

The user account is successfully created and listed in the


Expected Result
user database.

Actual Result The user account is successfully created.

Status Success

Test Environment OS: Windows 10 Browser: Google Chrome

DEPARTMENT OF COMPUTER APPLICATIONS 57 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

TEST CASE: 2

Test Suite ID TS002

Test Case ID TC002

Test Case Summary User Login to Hostel Management System

Related Requirements User Login

Test Procedure 1. Navigate to the User Login page.


2. Enter valid credentials (Email ID and Password).
3. Click the Login button.

Test Data Use registered user credentials (Email ID and Password).

Expected Result The user successfully logs in and is redirected to the user
dashboard.

Actual Result The user is logged in successfully.

Status Success

Test Environment OS: Windows 10 Browser: Google Chrome

TEST CASE: 3

Test Suite ID TS003

Test Case ID TC003

Test Case Summary Admin Login to Hostel Management System

Related Requirements Admin Login

Test Procedure 1. Navigate to the Admin Login page. 2. Enter valid


credentials (Admin Email ID and Password). 3. Click the
Login button.

Test Data Use valid admin credentials (Email ID and Password).

Expected Result The admin successfully logs in and is redirected to the


admin dashboard.

Actual Result The admin is logged in successfully.

Status Success

Test Environment OS: Windows 10 Browser: Google Chrome

DEPARTMENT OF COMPUTER APPLICATIONS 58 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

CHAPTER 7

SYSTEM MAINTENANCE

DEPARTMENT OF COMPUTER APPLICATIONS 59 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

7.1.INTRODUCTION

Maintenance is a critical aspect of the software industry, involving the captive use of system
resources and the restoration of systems to their original conditions. It encompasses a broad spec-
trum of activities, including rectifying coding and design errors, updating documentation and test
data, and enhancing user support. Maintenance is an ongoing process that continues after suc-
cessful implementation, persisting until the product is reengineered or deployed on another plat-
form. It addresses reported problems, interface changes with other software or hardware, and the
overall improvement of software.

7.2. MAINTENANCE

The primary objectives of maintenance are to ensure the continuous operation of the system
without any bugs and to accommodate environmental changes that may impact the computer or
software system. In today's rapidly changing software landscape, systems must be adaptable to
these changes. Maintenance is a pervasive aspect of system development, with analysts and pro-
grammers spending a significant amount of time maintaining programs and packages, accounting
for 60-80% of the total system development cost.

Challenges in maintenance arise because software is a handmade product designed with lim-
ited standards. The process involves implementing modifications, accepting the modification by
confirming its effectiveness with the requester, and ensuring the modification provides a solu-
tion. Maintenance programmers must analyze, confirm, check validity, investigate, propose solu-
tions, document requests and proposals, and obtain the necessary authorizations for modifica-
tions.

Types of Maintenance:

➢ Corrective Maintenance
➢ Perfective Maintenance
➢ Adaptive Maintenance

DEPARTMENT OF COMPUTER APPLICATIONS 60 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

CORRECTIVE MAINTENANCE

Corrective maintenance is the most common approach, addressing failures and downtime in pro-
duction. However, it has limitations, as the reliability of systems maintained through this ap-
proach is unknown and cannot be measured. It is suitable for items where the consequences of
failure are not significant, and the cost of maintenance is not greater than preventive mainte-
nance.

PERFECTIVE MAINTENANCE

Perfective maintenance involves changes to expand existing system requirements. Successful


software often undergoes successive changes to accommodate increased requirements. This can
include enhancing existing functionality and improving computational efficiency.

ADAPTIVE MAINTENANCE

Adaptive maintenance deals with changes initiated due to moving the software to a different
hardware or software platform. It is driven by the need to accommodate modifications in the
software system's environment. Changes to the environment necessitate corresponding modifica-
tions to the software.

DEPARTMENT OF COMPUTER APPLICATIONS 61 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

CHAPTER 8
FUTURE ENHANCEMENT AND
SCOPE OF FURTHER
DEVELOPMENT

DEPARTMENT OF COMPUTER APPLICATIONS 62 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

8.1 INTRODUCTION

The Hostel Management System (HMS) can undergo significant improvements and expansions
in the future to make it more efficient, user-friendly, and scalable. One of the key areas for future
development is the integration with academic and financial systems of educational institutions.
By linking the hostel management system with the institution’s academic and financial databases,
administrators can streamline processes such as student registration, and course allocations.
Additionally, syncing student information between systems would eliminate the need for
redundant data entry, reducing errors and improving efficiency in managing student records
across multiple platforms. Another important future development is the introduction of a mobile
application. With an increasing reliance on smartphones, a dedicated mobile app would offer
significant advantages in terms of accessibility. Students could easily book or change hostel
rooms, manage their profiles, check room availability, lodge complaints, and provide feedback
directly from their smartphones. Admins could also manage operations such as student
registration, room allocation, and complaints handling via the app, enabling them to perform their
duties anytime and from anywhere. This mobile app could further include features like push
notifications, reminding students about room bookings, or complaint updates, making
communication more efficient. Additionally, the integration of advanced reporting and analytics
tools would greatly enhance the decision-making process. Admins would be able to generate
detailed reports on hostel occupancy, student demographics, and feedback. These insights could
be used to predict trends, such as peak room booking periods, or common complaints, allowing
hostel management to plan better for the future. Predictive analytics could also help identify
potential issues, such as maintenance needs or overcrowding, before they become critical,
improving overall operational efficiency. Moving forward, cloud integration would be a strategic
move for the system. Hosting the HMS on the cloud would provide greater scalability, enabling
the system to handle an increasing number of users and hostels with ease. Cloud services can
offer automatic backups, enhanced data security, and access from anywhere with an internet
connection. This would be particularly beneficial for institutions with multiple campuses or
hostels, allowing centralized management and easier coordination between various hostel sites.
Cloud integration would also make the system more resilient, as it would be less dependent on
local hardware and infrastructure. This would significantly reduce administrative overhead and
provide a more seamless experience for both students and staff. In conclusion, the future of the
Hostel Management System holds great potential for enhancement. By embracing modern

DEPARTMENT OF COMPUTER APPLICATIONS 63 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

technologies such as cloud computing, mobile apps, AI, and advanced reporting tools, the system
can become more efficient, scalable, and user-centric, ultimately improving the overall
experience for both administrators and students.

8.2. MERITS OF THE SYSTEM

The Hostel Management System offers several key benefits:


1. Automation: It automates tasks like student registration, room allocation and complaint
handling, reducing the need for manual intervention and minimizing errors.
2. Centralized Data Management: The system stores all data in a centralized database, making it
easy to access and update student profiles, room availability in real-time.
3. Improved Communication: With features like instant notifications for room bookings and
complaints, communication between hostel staff and students becomes more-efficient and
timely.
4. User-Friendly Interface: The system provides a simple, intuitive interface for both
administrators and students, making it easy for users to navigate and perform tasks such as
registration, room booking, and feedback submission.
5. Enhanced Security: The system ensures data protection through encryption, role-based access
control, and secure login methods, safeguarding sensitive student information.
6. Scalability: The system can easily scale to accommodate a growing number of students and
rooms, making it suitable for small or large hostels.
7. 24/7 Accessibility: Students and administrators can access the system anytime, from any
location with internet access, providing convenience and flexibility.
8. Error-Free Data Management: Automated data entry and validation minimize human errors in
student records, room allocations, and payments.
9. Cost-Effectiveness: By automating administrative tasks, the system reduces operational costs
associated with manual processes and resource management.

8.3. LIMITATIONS OF THE SYSTEM

While the Hostel Management System offers many benefits, it also has some limitations:
1. Dependency on Technology
- The system relies heavily on technology, which means that any issues such as server
downtime, software bugs, or system failures can disrupt hostel operations.
- In areas with poor internet connectivity, remote access to the system may be limited or slow.

DEPARTMENT OF COMPUTER APPLICATIONS 64 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

2. Initial Setup Costs


- The implementation of a hostel management system may require significant upfront
investment, including hardware, software, and setup costs.
- Cloud hosting solutions may involve ongoing subscription fees, adding to operational
expenses.
3. User Training
- Hostel staff, especially those with limited technical knowledge, may require training to
effectively use the system.
- Students may also face a learning curve in navigating the system, particularly if they are
unfamiliar with digital platforms.
4. System Maintenance
- Regular maintenance, updates, and troubleshooting are needed to ensure the system runs
smoothly, requiring dedicated IT support.
- If not properly maintained, the system can become prone to security vulnerabilities or
functionality issues.
5. Data Privacy Concerns
- Storing sensitive student data (e.g., personal details, payment information) digitally poses a
potential security risk, especially if the system is not adequately secured.
- Data breaches or unauthorized access could compromise the privacy of students and staff.
6. Customization Limitations
- While many hostel management systems are customizable, certain features or workflows may
not fully align with every institution's specific needs.
- Customization can incur additional costs and complexity.
7. Limited Offline Functionality
- In case of internet or network failure, the system might not function properly, leading to
interruptions in hostel operations.
- Some systems may have limited offline functionality, requiring online access for most tasks.
8. Over-reliance on System Data
- Heavy reliance on the system for record-keeping and decision-making may lead to issues if
there are errors in data input or the system crashes.
- Manual backups and checks may still be necessary to avoid data loss or corruption.
9. Complexity for Smaller Hostels
- For smaller hostels with fewer students and staff, a full-fledged hostel management system
might be overly complex and unnecessary, resulting in wasted resources.

DEPARTMENT OF COMPUTER APPLICATIONS 65 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

10. Resistance to Change


- Hostel staff or students accustomed to manual systems may resist adopting the digital system,
leading to a slower transition and a temporary decline in efficiency

8.4. FUTURE ENHANCEMENT OF THE SYSTEM

Future enhancements of the *Hostel Management System* (HMS) can focus on improving
efficiency, user experience, and scalability. Some key improvements include:
1. AI Integration: AI can be used for predictive analytics, smart room allocation, and identifying
trends in student behaviour to optimize hostel operations and improve resource management.
2. Cloud-Based Hosting: Migrating the system to the cloud can enhance scalability, provide easier
data management, and improve system reliability and access from anywhere.
3.IoT Integration: Smart features such as room temperature control, energy usage monitoring, and
automated maintenance alerts can be added using IoT devices to enhance comfort and efficiency.
4. Advanced Analytics and Reporting: More advanced reporting tools, allowing administrators to
generate customizable reports for better decision-making and resource allocation.
5. Enhanced Complaint Management: Integrating AI-powered chatbots and real-time tracking of
complaints for faster resolutions and better student support.
6. Biometric and Security: To improve security, the system could incorporate biometric logins or
two-factor authentication for added protection of sensitive data.
7. Multi-Language Support: To cater to international students, adding language options could
make the system more accessible to a global audience.

DEPARTMENT OF COMPUTER APPLICATIONS 66 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

CHAPTER 9
CONCLUSION

DEPARTMENT OF COMPUTER APPLICATIONS 67 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

In conclusion, the Hostel Management System provides an effective and efficient solution to
streamline the complex tasks associated with managing hostel operations. By automating
processes such as student registration, room allocation, fee management, and complaint
handling, the system reduces administrative burdens, minimizes errors, and enhances operational
efficiency. The integration of a user-friendly interface, secure data management, and real-time
updates improves communication and transparency between students and administrators.
Although there are limitations, such as dependency on technology and the need for regular
maintenance, the system offers significant benefits in terms of time-saving, accuracy, and
scalability. With future enhancements, including mobile apps, AI, IoT integration, and advanced
reporting, the system can evolve further to meet the growing needs of educational institutions,
offering a more personalized, efficient, and secure hostel experience.

System maintenance
System Maintenance for the Hostel Management System (HMS) ensures that the system runs
smoothly and continues to meet the needs of both administrators and students over time. Here’s a
simple breakdown:

1. Software Updates
- Regularly update the system to fix bugs, add new features, and improve security.
2. Database Management
- Keep the system’s data safe by regularly backing it up, organizing it, and making sure it’s up-
to-date and accurate.
3. Security
- Protect the system from hackers by updating security settings, monitoring for risks, and using
encryption to keep sensitive student data safe.
4. Hardware and Infrastructure
- Ensure the servers and network are running properly, so the system doesn't experience
downtime or slow performance.
5. Bug Fixing
- Address any technical issues, like errors in room booking or payment processing, to keep the
system running without problems.
6. User Support
- Provide training and support to help users (students, staff, and admins) use the system
effectively and solve any problems they encounter.

DEPARTMENT OF COMPUTER APPLICATIONS 68 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

7. Performance Optimization
- Make sure the system loads quickly and handles a lot of users without slowing down,
especially during busy periods like fee payment time.
8. Backups and Recovery
- Regularly back up data to ensure it can be restored if something goes wrong, like a system
crash or data loss.
9. Compliance
- Keep the system in line with data protection laws and university policies, ensuring student
data is handled properly.
10. Continuous Improvement
- Collect feedback from users and make regular improvements to the system to keep it useful
and up-to-date with new needs.

DEPARTMENT OF COMPUTER APPLICATIONS 69 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

CHAPTER 10
BIBLIOGRAPHY

DEPARTMENT OF COMPUTER APPLICATIONS 70 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

BOOKS
➢ Web Programming, Chris Bates, 3rd Edition; Pub: John Wiley & Sons

WEBSITES
➢ ChatGPT ( https://chat.openai.com )
➢ BingAi ( https://www.bing.com )
➢ W3schools ( https://www.w3schools.com/ )
➢ Youtube ( https://youtube.com )
➢ Geekforgeeks ( https://www.geeksforgeeks.org/ )

DEPARTMENT OF COMPUTER APPLICATIONS 71 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

APPENDIX

DEPARTMENT OF COMPUTER APPLICATIONS 72 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

Book hostel (student)

Give feedback (student)

DEPARTMENT OF COMPUTER APPLICATIONS 73 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

Register complaints (student)

Access log (student)

DEPARTMENT OF COMPUTER APPLICATIONS 74 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

Change password (student)

Manage students (admin)

DEPARTMENT OF COMPUTER APPLICATIONS 75 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

Manage rooms (admin)

Add course (admin)

DEPARTMENT OF COMPUTER APPLICATIONS 76 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

View complaints (admin)

View feedback (admin)

DEPARTMENT OF COMPUTER APPLICATIONS 77 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

Access log (admin)

SAMPLE CODE

check_availability.php

<?php
require_once("includes/config.php");
//For Email
if(!empty($_POST["emailid"])) {
$email= $_POST["emailid"];
if (filter_var($email, FILTER_VALIDATE_EMAIL)===false) {
echo "error : You did not enter a valid email.";
}
else {
$result ="SELECT count(*) FROM userRegistration WHERE email=?";
$stmt = $mysqli->prepare($result);
$stmt->bind_param('s',$email);

DEPARTMENT OF COMPUTER APPLICATIONS 78 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

$stmt->execute();
$stmt->bind_result($count);
$stmt->fetch();
$stmt->close();
if($count>0)
{
echo "<span style='color:red'> Email already exist. Please try again.</span>";
}
}
}
// For Registration Number
if(!empty($_POST["regno"])) {
$regno= $_POST["regno"];
$result ="SELECT count(*) FROM userRegistration WHERE regNo=?";
$stmt = $mysqli->prepare($result);
$stmt->bind_param('s',$regno);
$stmt->execute();
$stmt->bind_result($count);
$stmt->fetch();
$stmt->close();
if($count>0)
{

echo "<span style='color:red'> Registration number already exist. Please try again .</span>";
}
}
// For old Password
if(!empty($_POST["oldpassword"]))
{
$pass=$_POST["oldpassword"];
$result ="SELECT password FROM userregistration WHERE password=?";
$stmt = $mysqli->prepare($result);
$stmt->bind_param('s',$pass);
$stmt->execute();

DEPARTMENT OF COMPUTER APPLICATIONS 79 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

$stmt -> bind_result($result);


$stmt -> fetch();
$opass=$result;
if($opass==$pass)
echo "<span style='color:green'> Password matched .</span>";
else echo "<span style='color:red'> Password Not matched</span>";
}
// For room availbilty
if(!empty($_POST["roomno"]))
{
$roomno=$_POST["roomno"];
$result ="SELECT count(*) FROM registration WHERE roomno=?";
$stmt = $mysqli->prepare($result);
$stmt->bind_param('i',$roomno);
$stmt->execute();
$stmt->bind_result($count);
$stmt->fetch();
$stmt->close();
if($count>0)
echo "<span style='color:red'>$count Seats already full.</span>";
else
echo "<span style='color:red'>All Seats are Available</span>";
}
?>

manage-students.php

<?php
session_start();
include('includes/config.php');
include('includes/checklogin.php');
check_login();
if(isset($_GET['del']))

DEPARTMENT OF COMPUTER APPLICATIONS 80 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

{
$id=intval($_GET['del']);

$adn="delete from registration where regNo=?";


$stmt= $mysqli->prepare($adn);
$stmt->bind_param('i',$id);
$stmt->execute();
$stmt->close();

}
?>
<!doctype html>
<html lang="en" class="no-js">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1,
maximum-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<meta name="theme-color" content="#3e454c">
<title>Manage Rooms</title>
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/dataTables.bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-social.css">
<link rel="stylesheet" href="css/bootstrap-select.css">
<link rel="stylesheet" href="css/fileinput.min.css">
<link rel="stylesheet" href="css/awesome-bootstrap-checkbox.css">
<link rel="stylesheet" href="css/style.css">
<script language="javascript" type="text/javascript">

DEPARTMENT OF COMPUTER APPLICATIONS 81 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
if(popUpWin)
{
if(!popUpWin.closed) popUpWin.close();
}
popUpWin = open(URLStr,'popUpWin',
'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,cop
yhistory=yes,width='+510+',height='+430+',left='+left+',
top='+top+',screenX='+left+',screenY='+top+'');
}
</script>

</head>

<body>
<?php include('includes/header.php');?>

<div class="ts-main-content">
<?php include('includes/sidebar.php');?>
<div class="content-wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<h2 class="page-title" style="margin-top:4%">Manage Registred Students</h2>
<div class="panel panel-default">
<div class="panel-heading">All Room Details</div>
<div class="panel-body">
<table id="zctb" class="display table table-striped table-bordered table-hover"
cellspacing="0" width="100%">
<thead>

DEPARTMENT OF COMPUTER APPLICATIONS 82 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

<tr>
<th>Sno.</th>
<th>Student Name</th>
<th>Reg no</th>
<th>Contact no </th>
<th>Room no </th>
<th>Seater </th>
<th>Staying From </th>
<th>Action</th>
</tr>
</thead>
<tfoot>
<tr>
<th>Sno.</th>
<th>Student Name</th>
<th>Reg no</th>
<th>Contact no </th>
<th>Room no </th>
<th>Seater </th>
<th>Staying From </th>
<th>Action</th>
</tr>
</tfoot>
<tbody>
<?php
$aid=$_SESSION['id'];
$ret="select * from registration";
$stmt= $mysqli->prepare($ret) ;
//$stmt->bind_param('i',$aid);
$stmt->execute() ;//ok
$res=$stmt->get_result();
$cnt=1;

DEPARTMENT OF COMPUTER APPLICATIONS 83 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

while($row=$res->fetch_object())
{
?>
<tr><td><?php echo $cnt;;?></td>
<td><?php echo $row->firstName;?><?php echo $row->middleName;?><?php echo $row-
>lastName;?></td>
<td><?php echo $row->regno;?></td>
<td><?php echo $row->contactno;?></td>
<td><?php echo $row->roomno;?></td>
<td><?php echo $row->seater;?></td>
<td><?php echo $row->stayfrom;?></td>
<td>
<a href="student-details.php?regno=<?php echo $row->regno;?>" title="View Full Details"><i
class="fa fa-desktop"></i></a>&nbsp;&nbsp;
<a href="manage-students.php?del=<?php echo $row->regno;?>" title="Delete Record"
onclick="return confirm('Do you want to delete');"><i class="fa fa-close"></i></a></td>
</tr>
<?php
$cnt=$cnt+1;
} ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

<!-- Loading Scripts -->


<script src="js/jquery.min.js"></script>

DEPARTMENT OF COMPUTER APPLICATIONS 84 MES AIMAT


HOSTEL MANAGEMENT SYSTEM

<script src="js/bootstrap-select.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.dataTables.min.js"></script>
<script src="js/dataTables.bootstrap.min.js"></script>
<script src="js/Chart.min.js"></script>
<script src="js/fileinput.js"></script>
<script src="js/chartData.js"></script>
<script src="js/main.js"></script>

</body>
</html>

DEPARTMENT OF COMPUTER APPLICATIONS 85 MES AIMAT

You might also like