Hostel Management System - 2017
Hostel Management System - 2017
1. Introduction.........................................................................................................................................2
1.1. Project Summary.........................................................................................................................2
1.2. Purpose........................................................................................................................................2
1.3. Scope...........................................................................................................................................2
1.4. Technology and Literature Review..............................................................................................2
2. Overview of selected Domain..............................................................................................................4
3. System Requirement Study..................................................................................................................5
3.1. User Characteristics.....................................................................................................................5
3.2. Hardware and Software Requirements.........................................................................................5
3.2.1. Hardware Specification............................................................................................................5
3.2.2. Software Specification.............................................................................................................5
3.3. Constraints...................................................................................................................................5
4. Function of System..............................................................................................................................6
5. Data Model, Functional and Behavior Model......................................................................................7
5.1. Class Diagram..............................................................................................................................7
5.2. Use case Diagram.........................................................................................................................8
5.3. Activity Diagram...........................................................................................................................9
5.4. Data Flow Diagram....................................................................................................................10
6. Testing...............................................................................................................................................12
6.1. Testing Plan...............................................................................................................................12
6.2. Testing Strategy.........................................................................................................................13
6.3. Testing Method..........................................................................................................................16
6.3.1. White Box Testing.............................................................................................................16
6.3.2. Black Box Testing.............................................................................................................17
Black Box Testing Techniques..............................................................................................................17
Black Box Testing Advantages..............................................................................................................18
7. Part of the Report...............................................................................................................................19
Hostel Management System | 2017
1. Introduction
1.1. Project Summary
The Hostel Management System is developed in favor of the hostel management team
which helps them to save the records of the students about their rooms and other things.
Hostel management gives on idea about how the student’s details, room allocation, Mess
expenditure are maintained in the particular concern. The hostel management System also
includes some special features.
The administration has the unique identity for each members as well as students details.
The stock management has also held by mess expenditure, the mess expenditure that used to
calculate the mess bills of each of the students.
1.2. Purpose
The purpose is to make an automated system to carry out the various operation of a
Hostel. The system will provide the ease of use to the staff of the hostel by performing all the
work on a computer system rather than following a paper pen approach. This approach helps
to improving the reliability of the data maintained and provides a fast and efficient interface
for the users of the system.
1.3. Scope
The Hostel Management System that will be used for maintaining the records in an
organized manner and to replace old paper work System. This project aims at automating the
hostel management for smooth working of the hostel by automating almost all the activities.
Updates and modifications will be easily achievable and all the calculations and accounting
work would be accurate.
In the current manual system, it will very difficult to find the hostel record and other
information of student manually. Because it has been keep on the paper and it is easy to loss.
It also consumes time to search the paper of student hostel record one by one.
Hostel Management System | 2017
1) Admin
The Admin is very important as this allow for this to manage the different
aspects of hostel management system.
2) Student
A new user would either have to register him/her with the system by providing
personal information or log into the system as a new student.
Ram : 4GB
Windows 8.1
Ms Access (2007)
Dreamweaver 08
3.3.Constraints
Internet is must be required for the system because without internet this system
cannot be work. Without internet user cannot register their details.
Mysql is used for the back end for storing the data.
Hostel Management System | 2017
4. Function of System
This section gives a functional requirement that applicable to the Hostel Management
System.
Administrator module
Student module
Registration module
Administrator module:
Edit the details of the students and modify the student records.
As the student’s course is over they will vacate their rooms. so it is required for the
administrator to remove their records from the database tables. This section includes
the option for the room vacation and the deletion of particular record from the
database.
Student module:
Registration module:
This section provides a form to the students which can be filled by them, and a
copy of the filled page can be taken in the printed form.
Hostel Management System | 2017
Use case diagram is a diagram that shows the interaction between user and
System to capture the user’s goals.
Hostel Management System | 2017
It describes the sequence of activity it supports for the conditional and parallel
behavior.
Hostel Management System | 2017
Level 0
Level 1
Hostel Management System | 2017
Data Dictionary
Registration
Student
6. Testing
Software testing is a process of executing a program or application with the intent of
finding the software bugs. It can also be stated as the process of validating and verifying that
a software program or application or product: Meets the business and technical requirements
that guided its design and development.
6.1.Testing Plan
Validation:
We had done my validation based testing during my implementation period.
GUI Testing:
After completion of my project we had started with GUI testing. The check that all
graphic match with the functionality of the system.
Unit Testing:
Then start with the unit testing. This testing applied for the each module.
Integration Testing:
After checking the independent modules applied integration testing for testing the
dependent module.
System Testing:
At last the whole system has been checked for the existence of possible errors. Two
Further methods can be applied for system testing named White Box and Black Box
Testing. Among them my guide and I had applied the black box testing.
Hostel Management System | 2017
6.2.Testing Strategy
Test case Test case name Input Actual O/P Expected Remarks
ID O/P
5 Save the data in Enter the Save the data The retrieved Pass
the forms data in form in the forms data should
and retrieve match the
it. entered data.
unnecessary unnecessary
use of use of
scrollbars is scrollbars is
avoided and avoided and
all the fields all the fields
should be should be
fully visible. fully visible.
6.3.Testing Method
6.3.1. White Box Testing
White Box Testing is tests that are run an application with the knowledge of the
internal working of the code base. White box testing is used in three of the six basic types
of testing: unit, integration, and regression testing. Unit testing is done on a small piece,
or unit, of code.
This unit is usually a class. When a unit is integrated into the main code base, it is
more difficult to find a bug in that unit. Integration testing looks at how all components
of an application interact. White box integration tests specifically look at the interfaces
between the components.
Regression testing verifies that modifications to the system have not damaged the
whole of the system. Unit tests and integration tests can be rerun in regression testing to
verify that modifications to the application work properly.
White box test cases should test different paths, decision points (both true and
false decisions), execute loops, and check internal data structures of the application. Basis
Hostel Management System | 2017
path testing, equivalence partitioning, and boundary value analysis are all used to create
white box tests. Basis path testing looks at the decision points in the application.
Equivalence partitioning divides the set of possible input values into equivalence
classes. Only a value from each of the equivalence classes needs to be tested. Boundary
value analysis looks at testing around a set boundary. A test case should be made for the
boundary value, n, n-1, and n+1.
The goal of white box testing is to cover testing as many of the statements,
decision point, and branches in the code base as possible.
Interface errors
Following are some techniques that can be used for designing black box tests.
Equivalence partitioning:
Tests are done from a user’s point of view and will help in exposing discrepancies
in the specifications.
Tester need not know programming languages or how the software has
been implemented. Tests can be conducted by a body independent from
the developers, allowing for an objective perspective and the avoidance of
developer-bias.
Only a small number of possible inputs can be tested and many program
paths will be left untested.
Hostel Management System | 2017
Without clear specifications, which are the situation in many projects, test
cases will be difficult to design. Tests can be redundant if the software
designer/ developer has already run a test case.
Ever wondered why a soothsayer closes the eyes when foretelling events?
So is almost the case in Black Box Testing.
7. Gantt Chart
Week 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Activity December January February March
Requirement
Gathering
Analysis
Technology Study
Coding And
Testing
Final Testing
Documentation
Final
Documentation
Hostel Management System | 2017
8. Source Code
Home.php
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Home Page</title>
<style>
#main
{
Width : 1000px;
Height : 600px;
background-color:#9CF;
}
</style>
</head>
<body>
<center><div id="main">
<center><h1>HOSTEL MANAGEMENT SYSTEM</h1></center><hr>
<a href="login.php" style="margin-left:800px;">LOG OUT</a>
<br><br>
<a href="Student_insert.php" style="text-decoration:none; font-size:27px; color:#F00;
font-family:'Gill Sans', 'Gill Sans MT', 'Myriad Pro', 'DejaVu Sans Condensed', Helvetica,
Arial, sans-serif"><strong>ADD STUDENT</strong></a><br><br>
<a href="Student_view.php" style="text-decoration:none; font-size:27px; color:#F00;
font-family:'Gill Sans', 'Gill Sans MT', 'Myriad Pro', 'DejaVu Sans Condensed', Helvetica,
Arial, sans-serif"><strong>VIEW STUDENT</strong></a><br><br>
<a href="Student_view.php" style="text-decoration:none; font-size:27px; color:#F00;
font-family:'Gill Sans', 'Gill Sans MT', 'Myriad Pro', 'DejaVu Sans Condensed', Helvetica,
Arial, sans-serif"><strong>EDIT STUDENT</strong></a><br><br>
Hostel Management System | 2017
Login.php
<?php
$con=mysql_connect("localhost","root","");
mysql_select_db("hstel",$con);
if(isset($_POST['submit']))
{
$Username=$_POST['uname'];
$Passward=$_POST['pwd'];
$q="select * from register where username='$Username'";
$d=mysql_query($q);
$r=mysql_fetch_object($d);
$n=$r->Username;
$p=$r->Passward;
if($n==$Username && $p==$Passward)
{
header('Location:Home.php');
}
}
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>
<body bgcolor="#FFCCFF">
<form method="post">
<center><h1>LOGIN</h1></center>
Hostel Management System | 2017
Registration.php
<?php
$con=mysql_connect("localhost","root","");
mysql_select_db("hstel",$con);
if(isset($_POST['submit']))
{
$Firstname=$_POST['fname'];
$Lastname=$_POST['lname'];
$Username=$_POST['uname'];
$Passward=$_POST['pwd'];
$qry="insert into
register(Firstname,Lastname,Username,Passward)values('$Firstname','$L
astname','$Username','$Passward')";
$res=mysql_query($qry);
if($res)
{
header('Location:login.php');
Hostel Management System | 2017
}
}
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>
<body bgcolor="#FFCCFF">
<form method="post">
<center><h1>REGISTRATION</h1></center>
<center><table cellpadding="4" cellspacing="4" style="font-size:18px">
<tr>
<td>First Name:</td>
<td><input type="text" name="fname" id="fname"></td>
</tr>
<tr>
<td>Last Name:</td>
<td><input type="text" name="lname" id="lname"></td>
</tr>
<tr>
<td>Username:</td>
<td><input type="text" name="uname" id="uname"></td>
</tr>
<tr>
<td>Passward:</td>
<td><input type="password" name="pwd" id="pwd"></td>
</tr>
<tr>
<td></td>
<td><input type="submit" name="submit" value="Register"></td>
</tr>
</table></center>
</form>
</body>
</html>
Hostel Management System | 2017
Insert.php
<?php
$con=mysql_connect("localhost","root","");
mysql_select_db("hstel",$con);
if(isset($_POST['submit']))
{
$Firstname=$_POST['fname'];
$Lastname=$_POST['lname'];
$Contact=$_POST['contact'];
$Address=$_POST['address'];
$Gender=$_POST['gender'];
$Roomno=$_POST['rno'];
$qry="insert into stu_insert
(Firstname,Lastname,Contact,Address,Gender,Roomno)values('$Firstname','$La
stname','$Contact','$Address','$Gender','$Roomno')";
$res=mysql_query($qry) or mysql_error();
if($res)
{
header('Location:Home.php');
}
}
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>
<body bgcolor="#FFCCFF">
<form method="post"s>
<center><h1>STUDENT REGISTRATION</h1></center>
<center><table cellpadding="5" cellspacing="5" style="font-size:18px">
<tr>
<td>First Name:</td>
<td><input type="text" name="fname" id="fname"></td>
</tr>
<tr>
Hostel Management System | 2017
<td>Last Name:</td>
<td><input type="text" name="lname" id="lname"></td>
</tr>
<tr>
<td>Contact:</td>
<td><input type="text" name="contact" id="contact"></td>
</tr>
<tr>
<td>Address:</td>
<td><input type="text" name="address" id="address"></td>
</tr>
<tr>
<td>Gender:</td>
<td><input type="radio" name="gender" value="male">Male
<input type="radio" name="gender" value="female">Female</td>
</tr>
<tr>
<td>Room Number:</td>
<td><input type="text" name="rno" id="rno"></td>
</tr>
<tr>
<td></td>
<td><center><input type="submit" name="submit" value="Add" style="height:30px;
width:100px;font-size:20px;"></center></td>
</tr>
</table></center>
</form>
</body>
</html>
Delete.php
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>
<body>
Hostel Management System | 2017
<?php
$con=mysql_connect("localhost","root","");
mysql_select_db("hstel",$con);
$qry="select * from stu_insert";
$res=mysql_query($qry);
$r=mysql_fetch_array($res);
$sid=$r['sid'];
$qry1="delete from stu_insert where sid='$sid'";
if(mysql_query($qry1))
{
header('Location:Student_view.php');
}
?>
</body>
</html>
Edit.php
<?php
$con=mysql_connect("localhost","root","");
mysql_select_db("hstel",$con);
$sid=$r['sid'];
$fname=$r['Firstname'];
$lname=$r['Lastname'];
$contact=$r['Contact'];
$address=$r['Address'];
$gender=$r['Gender'];
$Roomno=$r['Roomno'];
if(isset($_POST['submit']))
{
$fn=$_POST['fname'];
$ln=$_POST['lname'];
Hostel Management System | 2017
$co=$_POST['contact'];
$add=$_POST['address'];
$gen=$_POST['gender'];
$rnom=$_POST['rno'];
$qry1="update stu_insert set
Firstname='$fn',Lastname='$ln',Contact='$co',Address='$add',Gender='$gen',Ro
omno='$rnom' where sid='$sid'";
$result=mysql_query($qry1);
if($result)
{
header('Location:Student_view.php');
}
else
{
echo "error";
}
}
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>
<body bgcolor="#FFCCFF">
<form method="post">
<center><h2>UPDATE DETAIL</h2></center>
<center><table cellpadding="5" cellspacing="5" style="font-size:18px">
<tr>
<td>First Name:</td>
<td>
<input type="text" name="fname" id="fname" value="<?php echo $fname;
?>"></td>
</tr>
<tr>
<td>Last Name:</td>
<td>
<input type="text" name="lname" id="lname" value="<?php echo $lname;?>">
</td>
</tr>
<tr>
<td>Contact:</td>
Hostel Management System | 2017
<td>
<input type="text" name="contact" id="contact" value="<?php echo $contact;?
>">
</td>
</tr>
<tr>
<td>Address:</td>
<td>
<input type="text" name="address" id="address" value="<?php echo $address;?
>">
</td>
</tr>
<tr>
<td>Gender:</td>
<td>
<input type="radio" name="gender" value="male">Male
<input type="radio" name="gender" value="female">Female</td>
</tr>
<tr>
<td>Room Number:</td>
<td>
<input type="text" name="rno" id="rno" value="<?php echo $Roomno; ?>">
</td>
</tr>
<tr>
<td></td>
<td>
<center><input type="submit" name="submit" value="UPDATE"
style="height:30px; width:100px;font-size:20px;"></center>
</td>
</tr>
</table>
</center>
</form>
</body>
</html>
Student_view.php
<!doctype html>
<html>
Hostel Management System | 2017
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>
<body>
<a href="Home.php" style="margin-left:1000px; margin-top:20px; text-decoration:none;font-
size:20px;"><strong>HOME</strong></a>
<?php
$con=mysql_connect("localhost","root","");
mysql_select_db("hstel",$con);
echo "<tr>
<th><font color='Red'>ID</font></th>
<th><font color='Red'>FIRST NAME</font></th>
<th><font color='Red'>LAST NAME</font></th>
<th><font color='Red'>CONTACT</font></th>
<th><font color='Red'>ADDRESS</font></th>
<th><font color='Red'>GENDER</font></th>
<th><font color='Red'>ROOM NUMBER</font></th>
<th><font color='Red'>EDIT</font></th>
<th><font color='Red'>DELETE</font></th>
</tr>";
while($row=mysql_fetch_array($res))
{
echo "<tr>";
echo '<td><center><b><font color="#663300">' . $row['sid'] . '</font></b></center></td>';
echo '<td><center><b><font color="#663300">' . $row['Firstname'] .
'</font></b></center></td>';
echo '<td><center><b><font color="#663300">' . $row['Lastname'] .
'</font></b></center></td>';
echo '<td><center><b><font color="#663300">' . $row['Contact'] . '</font></b></center></td>';
echo '<td><center><b><font color="#663300">' . $row['Address'] . '</font></b></center></td>';
echo '<td><center><b><font color="#663300">' . $row['Gender'] . '</font></b></center></td>';
Hostel Management System | 2017