CHAPTER1-4 Last To Last
CHAPTER1-4 Last To Last
INSTITUTE OF TECHNOLOGY
PROJECT ON
IN
COMPUTER SCIENCE
SUBMITTED BY
ADVISOR:-FEKADU MEKONNEN
SIGNATURE______________________
July 2021
JIGJIGA UNIVERSITY
ETHIOPIA
ONLINE EXAMINATION SYSTEM
ACKNOWLEDGMENT
First of all we would like to give a great thanks to the Almighty Allah who helped us in all. We
take this opportunity to express our sincere thanks to our Advisor Mr. Fekadu Mekonnen
for his best guidance and support through his suggestions and ideas throughout our project and
correcting various documents error of our project with attention and care.
Finally, we would like extend special thanks to our parents for their unwavering confidence,
encouragement and emotional support which was instrumental to the successful completion of
our bachelor degree coursework and for our classmates for their great help and keeping us some
suggestions based on the projects and others.
I
ONLINE EXAMINATION SYSTEM
Abstract
Jigjiga University Online Examination System is a system that enables the university to reduce
many problems faced in examination system. This project realizes the problems in existing
system and tries to give solution to these problems of the University.
Problems found in the existing system can be considered in four corners. First, instructor’s time
and labor is wasted while preparing the examination and correcting it. It is also boring to do so.
But, the JJUOES makes examination giving process very fast, simple and clear that all
instructors can use it with their own user account. Second, student’s result may be lost,
examination paper may not be evaluated correctly, and student can forget to write his /her name
on examination paper. The JJUOES system solves these problems of students by giving access to
the system that is clear and user friendly. The data is also stored permanently to the database of
the system and can be accessed at needed time. Third, the duplicate office workers waste their
time and labor while duplicating examination paper and ordering it. Some pages may also be
missed. In the JJUOES system there is no need of duplicate office. Thus, it reduces the resources
wastage. Fourth, the examination committee also loses his/her time while checking examination
question manually, but in this system he/she can do his/her work without boring. Generally, the
university will be happy to the system because, those problems will be solved by the system.
Thus, examination system will be done in fast, effective and secured manner.
In this phase two of the project we are going to describe class modeling with design and
description of the class diagram, deployment diagram which shows architecture of the system
(in our case it is client-server), persistence modeling which contain permanent data like user
logs, examination, result and the like, state chart which shows the state of the system as
processed by user, and user interface diagram of the system.
We will also describe the implementation and testing of the JJUOES system. While testing the
accessibility, feasibility and correctness of the system will be checked. The wrong or
unauthorized access must be violated by the system and required service must be gain from it.
This is will be supported by message dialogs that user can understand and use it properly.
Generally, this phase shows real work of the system.
II
ONLINE EXAMINATION SYSTEM
List of Acronyms
CD Compact Disk
GB Giga Byte
HW Hardware
MB Mega Byte
SW Software
UI User Interface
III
ONLINE EXAMINATION SYSTEM
Contents
ACKNOWLEDGMENT..............................................................................................................................I
Abstract.......................................................................................................................................................II
List of Acronyms........................................................................................................................................III
List of Tables............................................................................................................................................VII
List of Figures..........................................................................................................................................VIII
CHAPTER ONE..........................................................................................................................................1
1. Introduction.........................................................................................................................................1
1.1 Background..................................................................................................................................2
1.2 Statement of the Problem...................................................................................................................2
1.3 Objective of the Project...............................................................................................................3
1.3.1 General Objective.......................................................................................................................3
1.3.2 Specific Objectives.....................................................................................................................3
1.4 Scope of the Project...........................................................................................................................4
1.5 Limitation of the Project..............................................................................................................4
1.6 Methodology of the Project.........................................................................................................5
1.6.1 Data Collection Methods.....................................................................................................5
1.6.2 Analysis and Design............................................................................................................5
1.6.3 Development Tools..............................................................................................................6
1.7 Significance of the Project...........................................................................................................6
1.8 Operating Environment................................................................................................................7
1.8.1 Hardware Requirements.......................................................................................................7
1.8.2 Software Requirements........................................................................................................7
1.9 Document Organization...............................................................................................................8
CHAPTER TWO.........................................................................................................................................9
2 Description of the Existing Systems................................................................................................9
2.1 Introduction.......................................................................................................................................9
2.2 The Main Activities...........................................................................................................................9
2.3 Function of Existing System............................................................................................................10
2.4 Alternative Solution.........................................................................................................................10
CHAPTER THREE...................................................................................................................................11
3 Requirement Specification and Analysis...........................................................................................11
IV
ONLINE EXAMINATION SYSTEM
3.1 Introduction.....................................................................................................................................11
3.1.1 The Proposed System................................................................................................................11
3.1.2 Intended Audience and Reading Suggestion.............................................................................12
3.1.3 Document Conventions.............................................................................................................12
3.2 Objective.........................................................................................................................................13
3.3 Functional Requirement...................................................................................................................13
3.4 Non- Functional Requirement..........................................................................................................14
3.5 System Use Case.......................................................................................................................15
3.5.1 Use Case Models...............................................................................................................15
3.1.1 Activity Diagram...............................................................................................................28
3.1.2 Sequence Diagram.............................................................................................................32
3.5.4 Analysis Class Diagram............................................................................................................37
CHAPTER FOUR.....................................................................................................................................39
4.1 Design Goal...............................................................................................................................39
4.2 Architectural Design..................................................................................................................39
4.2.1 Deployment Modeling.......................................................................................................40
4.2.2 Persistence Data Management...........................................................................................41
4.3 User Interface Design......................................................................................................................43
CHAPTER FIVE.......................................................................................................................................44
5. Implementation and Testing..................................................................................................................44
5.1 Introduction.....................................................................................................................................44
5.2 Algorithm Design and Coding.........................................................................................................44
5.2.1 Algorithm Design.....................................................................................................................44
5.2.2 Coding......................................................................................................................................45
5.3 Testing.............................................................................................................................................55
5.3.1 Units Testing.............................................................................................................................55
5.3.2 Integration Testing....................................................................................................................56
5.3.3 System Testing.........................................................................................................................56
5.3.4 Acceptance Testing...................................................................................................................56
5.4 Hardware and Software Requirements.............................................................................................56
5.4.1 Hardware Requirements...........................................................................................................57
5.4.2 Software Requirements.............................................................................................................57
V
ONLINE EXAMINATION SYSTEM
VI
ONLINE EXAMINATION SYSTEM
List of Tables
Table3. 1: The scenario or use case description of the Manage Account use case.......................17
Table3. 2 : The scenario or use case description of the Manage Institute use case.......................18
Table3. 3: The scenario or use case description of the Manage Department use case..................19
Table3. 4: The scenario or use case description of the Manage Course use case..........................20
Table3. 5: The scenario or use case description of the Manage User use case.............................21
Table3. 6: The scenario or use case description of the exam approval use case...........................22
Table3. 7 : The scenario or use case description of the Login use case........................................23
Table3. 8: The scenario or use case description of the Read Question use case..........................24
Table3. 9: The scenario or use case description of the View Result use case..............................25
Table3. 10: The scenario or use case description of the Submit questions use case.....................26
Table3. 11: The scenario or use case description of the Change Pass use case.............................27
VII
ONLINE EXAMINATION SYSTEM
List of Figures
VIII
ONLINE EXAMINATION SYSTEM
IX
ONLINE EXAMINATION SYSTEM
CHAPTER ONE
1. Introduction
On-line examination contents providers to focus on creating effective assessment questions and
focusing on examination’s feedback delivery to students. In the paper we present techniques that
are pertinent to the elements of assessment process: answers submission, computerized grading,
and feedback after submission.
As the modern organizations are automated and computers are working as per the instructions, it
becomes essential for the coordination of human beings, commodity and computers in a modern
organization.
The administrators, instructor, Students who are attending for online examination can
communicate with the system through this projects, thus facilitating effective implementation
and monitoring of various activities of Online Examination like conducting Examinations as per
scheduled basis and delivering result to that particular use or student. And the details of students
who attempted Online Examination are maintained at administrator.
The system also helpful for conducting different examination question which can be conducted
regularly. It can also be used for provide immediate results and save precious time of to check
student’s copy and prepare mark sheets, so it is very important for that graduates students to
handle the web based examination system and evaluate their results online. But the purpose The
examination is to facilitate the effort of student to revise the core of learning outcome of the
course covered also make ensure the student to be competent and monitor the level of
achievement in learning outcomes of course.so the system solve the problem which are occur
during examination time taken through manual system. Therefore the document describes all
features and procedures to develop online examination system for Ethiopia higher education
institute. Because of it is very useful for any Institute or Department to test their students
continuously for their mutual development and know about their progress. The system allows
examination agency to create their own examination on online.
1
ONLINE EXAMINATION SYSTEM
1.1 Background
Jigjiga University is one of the public higher institutions that was founded in March 2007, along
with the Second-Generation universities in Ethiopia. It is located in the emerging town of Jigjiga
the capital city of Ethiopian Somali regional state, 635 kilometers away from Addis Ababa. The
University officially started its service with 712 students, 66 and 99 administrative in three
faculties in 2007.
In the recent years, the intake capacity is increasing from year to year. So currently, it has a total
of 21,554 students studying in 57 various academic programs and 627 post-graduate students
pursuing in six academic programs. These programs are operating under eight Colleges, three
Schools and an Institute.
To this effect, the university has shown much achievement in education, research and
community service. Last year only, 1888 students are graduated from different discipline that are
capable of playing a great role in the development of the country.
In it is aim is conducting demand driven research and communicating relevant research output
which are problem solving and result oriented. Most of these research focus in pastoral and agro-
pastoral studies. The research output communication is one strategic objective that focuses on
adoption and adaptation of locally relevant technology and its transferring and assessing the
community awareness on cross cutting issues. It is also engaging in publicizing different research
and related works to the internal and external customers and stakeholders through various means,
like media, seminars, symposium and intellectual forums.
2
ONLINE EXAMINATION SYSTEM
We recognized that there are many problems in terms of examination giving process with
required quality in the university. Generally, we have noticed the following problems.
There is high cost to buy copy machines, printers, papers for hard copy as well as
payment for duplicators and invigilators.
There is accuracy problem in correct examination papers
High human power wastage.
Wastage of time to print and to wait for copying in duplicate office.
It is wastage of time for instructors while correcting examination papers and giving
result back.
Some pages of examination paper may be jumped by error while duplicating.
The result of students may be lost.
Even candidates or students may lose where and when the examination is
performed.
These problems will be solved by Online Examination System (OES) for Jigjiga University
project by changing manual examination giving process into intranet based or online
examination system.
To make the examination process time and cost effective and efficient.
3
ONLINE EXAMINATION SYSTEM
Time minimizing
Cost (resource) minimizing
To enable student to use their time properly while taking examination (timer will start
automatically and show the student how much time is left).
To enable the students to get examination result from the system as soon as they finish
examination.
To provide an interface through which student can appear for examination online.
To enable instructor save their time while correcting examination paper.
To increase security of the examination system through authentication.
Only multiple choice, matching and true/false type of questions are automated,
subjective questions are checked manually.
If the time is finished student cannot read the questions again and the answer is
automatically submitted and the result is displayed with the correct answer.
4
ONLINE EXAMINATION SYSTEM
Starting from proposed system we gathered information and data through different mechanisms.
Different fact finding techniques or approaches were used to gather information about the current
system. It is the fundamental activity for the development of the system. Without them data
modeling cannot be constructed. In order to know how the existing system work and what
problem are there we have been using the following fact-finding techniques.
Observation: Observation is one of the most important methodologies to gathering
information by physical going to the place and looks how the current system works. It
can be very difficult for humans to explain what they do or to even describe accurately
how they achieve a task, so observation very crucial to gathering information.
To design the system the project team has choose Object Oriented Modeling techniques
and Unified modeling language tools.
Understanding of the structure is easy because object oriented modeling and tools used to
represent real world entities.
5
ONLINE EXAMINATION SYSTEM
Modification of the object implementation is easy because objects are loosely coupled.
Developing this project has much significance for the university or institutes and the students
which are take online examination. The system is centralized administrator controls and saves
the efforts and time of both the university and the students.
For university:
Reduce economy spend for buying papers and printers.
Reduce man power like examiner, supervisor and other that participate in
examination
Avoid tiredness to analysis the student result, because the student file will
stored in the database instead of cabinet so, it is easy to search student file
from database.
6
ONLINE EXAMINATION SYSTEM
Making students aware about the examination because student can see all
information about examination detail from the system.
Xampp server: to provide MySQL for creating and manipulating databases and PHP
to design user interface from the front end of software. That is develop code
Windows 10: - this operating system is installed on the client computers enable to
join the domain of the network.
My SQL: - on which the records and all other data stored on.
Edraw max :- To Design UML diagrams
Notepad ++ to edit PHP codes.
7
ONLINE EXAMINATION SYSTEM
This project paper is divided into four chapters or phases. The first phase covers the introduction,
which contains background, statement of problem, objective of the project, scope, and
methodology and significant of the project operating environment.
The second phase covers the system features which contain existing system description, the main
activity, functions of existing systems and alternative solution.
The third phase requirement specification and analysis, functional requirement, and
nonfunctional requirement, systems use case include Use case models, activity diagram,
sequence diagram, and analysis diagram.
The fourth phase design goal which include architectural diagram deployment diagram, and user
interface design.
8
ONLINE EXAMINATION SYSTEM
CHAPTER TWO
2 Description of the Existing Systems
The whole process of assigning examination and evaluating scores of students after the
examination, in the University was done manually till date. Processing the examination paper i.e.
checking and distributing respective scores is used, and it is time consuming and loose of effort.
2.1 Introduction
The major practices of examination process in the University are the following.
The instructor prepares the examination and brings to the Examination Committee of the
department. The Examination Committee then checks the examination and approved it. The
approved examination will be printed and taken to the dean of college or institute for sign. Then
the examination paper will be taken to duplicate office.
The duplicator then duplicates the examination paper with ordered number of copies and keeps
there until 30 minutes left for examination time. The instructor takes the examination paper and
gives to the assigned invigilator(s).
The invigilator distributes examination paper to students in the assigned examination room, and
student does the examination and submits to invigilator. The invigilators then gives the
examination papers back to the instructor. The instructor then corrects the examination paper and
shows the result to student.
9
ONLINE EXAMINATION SYSTEM
The major function in the existing examination system of the University are instructors, students,
duplicators and examination committees. Their duties are described as follows.
I. Instructor:
Prepares exam for the student on the course he is giving.
Submit the exam paper to the Exam Committees.
Duplicate based on number of students
Gives the exam paper from the assigned invigilator(s).
Collect exam paper from invigilator(s) and corrects it.
Finally, shows the result to students.
II. Student:
Take the exam in the assigned examination class which is prepared in the hard
copy examination
III. Duplicator:
Duplicates the exam papers given by instructors.
Give the duplicated exam papers to respective instructors.
IV. Exam committees:
Check the exam prepared by respective instructors.
Then gives back to the respective instructor.
The existing examination system in the University is paper based, time consuming, less flexible.
The chance of loss of records is high and also record searching is difficult.
Maintenance of the system is also very difficult and takes lot of time. Result Processing is slow
due to paper work and requirement of staff. To solve these problems they required a
computerized system, which is used as a core alternative solution to handle all the works. This
alternative solution is the system we are going to develop that will provide a working
environment that will be flexible and will provide ease of work and will reduce the time for
report generation and other paper works.
10
ONLINE EXAMINATION SYSTEM
CHAPTER THREE
System Requirements Analysis gives the professional systems engineer the tools to set up a
proper and effective analysis of the resources, schedules and parts needed to successfully
undertake and complete any large, complex project.
The Online Examination System (OES) automates each and every activity of the manual
system and increases its throughput. It is created for taking online examination that has the
following features.
In comparison to the present system, the response time of the system is very
less and it works very fast.
Result will be very precise and accurate and will be declared in very short
span of time because calculation and evaluations are done by the system itself.
The proposed system is very secure since all users inter to the system by their
user accounts.
The logs of appeared students and their marks are stored and can be for
backup for future use.
The proposed system will reduce cost of examination process.
11
ONLINE EXAMINATION SYSTEM
It saves the instructors from time wasting while correcting examination papers
and they can get the results of their students from the system immediately.
It can generate various reports when and where required.
In this system we used waterfall model to apply these ideas, which help us to separate each step
and when we finish a one phase the output of it is the input to the next phase.
The online examination system is specifically implemented to target certain people which
include students, developers, the testers, project managers, documentation writers, and the
marketing staff. The bigger part of this entire document gives a general analysis and description
of the systems general entities such as system features, External Interface Requirements,
Functional and Non Functional Requirements.
Documentation conventions and coding conventions are the most important factors that can
improve communications between developers during object design.
Conventions make programs more understandable by making them easier to read. They can also
give information about the function of the identifier-for examinational, whether it's a constant,
package, or class-which can be helpful in understanding the code.
Document conventions
Packages: lowercase.
Classes: Capitalized with Internal words also capitalized
Private or protected: first Word Lower Case but Internal Words Capitalized
Static private or protected: first Word Lower Case but Internal Words Capitalized
Local variables: lower case with underscores
Methods: lower case with underscores
12
ONLINE EXAMINATION SYSTEM
3.2 Objective
The objective of the Online Examination Tool is to provide better information for the users of
this system for better results for their maintenance in student examination schedule details and
grading details.
The user requirement for this system is to make the system fast, flexible, less prone to error,
reduce expenses and save the time. Using the online examination system the following functional
requirements are performed by each actors of the system.
13
ONLINE EXAMINATION SYSTEM
The student should be able to see his/her own result that displayed by system.
The System should be able to show the schedule of the examination before the
examination time.
The system should be able to authenticate through login its users (Administrator,
Examination committee, Instructor and Student) by checking their information.
The system should enable users to change their password.
Error Handling
Security
Authenticated user with predefined access right will only enter to the information
related to database.
Every users should use strong passwords especially admin.
One student cannot see the result of another student.
HTTP must be secured by adding the security capabilities of SSL/TLS to
standard HTTP communications.
Using SSL/TLS data flow between client and server will be encrypted.
Availability
There is no delay in the availability of any information, whatever needed, can be
captured very quickly and easily.
14
ONLINE EXAMINATION SYSTEM
Maintainability
Backups for database and other sensitive information are available for recovery if
damage is happen.
Accessibility
The system provides access right control for each of its user and every user can
access the data which belong to them.
Accuracy
The Online Examination System provides the uses a quick response with very
accurate information regarding the users etc. Any details or system in an
accurate manner, as and when required.
Response in time
The system will let the all users (Administrator, Student, and Instructor) to access
the needed information more quickly. That means the response time is 1 seconds
User-Friendly
The Online Examination System has a very user-friendly interface. Thus the
users will feel happy since it is easy to work on it. The software provides
accuracy along with a pleasant interface. Make the present manual system
more interactive, speedy and user friendly.
15
ONLINE EXAMINATION SYSTEM
16
ONLINE EXAMINATION SYSTEM
17
ONLINE EXAMINATION SYSTEM
Actor Administrator
Precondition The users (instructors, students, Examination Committee)
must be the member of the University.
Table3. 1: The scenario or use case description of the Manage Account use case
18
ONLINE EXAMINATION SYSTEM
Actor Administrator
Table3. 2 : The scenario or use case description of the Manage Institute use case
19
ONLINE EXAMINATION SYSTEM
Actor Administrator
Table3. 3: The scenario or use case description of the Manage Department use case
20
ONLINE EXAMINATION SYSTEM
Actor Administrator
Table3. 4: The scenario or use case description of the Manage Course use case
21
ONLINE EXAMINATION SYSTEM
Actor Administrator
Table3. 5: The scenario or use case description of the Manage User use case
22
ONLINE EXAMINATION SYSTEM
Table3. 6: The scenario or use case description of the exam approval use case
23
ONLINE EXAMINATION SYSTEM
UC Name Login
Flow of event 1. The user of the system clicks Login button on the home
page.
2. The system displays the Login page.
3. The users their user name and password to enter to the
system. [A1][A2]
4. The system displays access page for the respective
UCID-07
user.
Post condition The user entered to the system and can access the system.
Table3. 7 : The scenario or use case description of the Login use case
24
ONLINE EXAMINATION SYSTEM
Actor Student
Precondition Student must be registered for that course and attend the class
Flow of event 1. The student clicks Read Examination button from home page.
2. The system displays the department, year and course choose page for
student.
3. The student chooses the department, year and course that he wants to read
examination. [B 1] [B 2][B3]
4. The system displays the examination page.
5. The student reads the examination questions and selects choose which he/she
realized to be correct answer and clicks Submit Answer button. [B 4]
6. The system closes the examination page and displays the result of the
student.
Post condition The student already taken examination.
UCID-08
1. The system displays, “You are not taking this course, please!”
message.
2. The system resumes at step 2.
B4: Time is up Message
25
ONLINE EXAMINATION SYSTEM
UC Description Enables student to see their own results after they finished the
examination and instructors to see results of all students.
Flow of event 1.The student or instructor clicks See Result button from home
page.
2.The system displays the department, year and course choose
page for student.
3.The student and instructor choose department, year and
course that he wants to see result. [B 1] [B 2][B3]
4.The system displays the result page for student and
instructor.
UCID-9
26
ONLINE EXAMINATION SYSTEM
Actor Student
button[A1]
2. The system checks the answer and record the
result
Post condition The result of the student calculated from the
answer
Table3. 10: The scenario or use case description of the Submit questions use case
27
ONLINE EXAMINATION SYSTEM
Flow of event 1. The user clicks the Change Pass button from
respective page
2. The system displays change password page
3. The user enters the required information and
clicks submit button[B 1] [B 2]
4. The system changes the password of user
Post condition The password is changed; user can enter to the
system only by new password.
28
ONLINE EXAMINATION SYSTEM
Activity diagram used to emphasize the flow of control from activity to activity or to model the
flow of an object as it moves from state at different points in the flow of control.
29
ONLINE EXAMINATION SYSTEM
30
ONLINE EXAMINATION SYSTEM
31
ONLINE EXAMINATION SYSTEM
32
ONLINE EXAMINATION SYSTEM
Sequence diagrams show a succession of interactions between classes or object instances over
time. The Sequence diagrams of some classes are given bellow.
33
ONLINE EXAMINATION SYSTEM
34
ONLINE EXAMINATION SYSTEM
35
ONLINE EXAMINATION SYSTEM
Figure 3. 12: The sequence diagram of Mange Question and Check Question in the system
36
ONLINE EXAMINATION SYSTEM
37
ONLINE EXAMINATION SYSTEM
Class diagram is a static diagram that represents the static view of the system. The class
diagrams are widely used in the modeling of object oriented systems because they are the only
UML diagrams, which can be mapped directly with object-oriented languages. Class diagram
shows a collection of classes, interfaces, associations, collaborations, and constraints. Generally
the purpose of the class diagram can be summarized as.
Describing or modeling the static view of the system.
38
ONLINE EXAMINATION SYSTEM
39
ONLINE EXAMINATION SYSTEM
CHAPTER FOUR
4.1Design Goal
Design is the first step in the development phase for any techniques and principles for the
purpose of defining a device, a process or system in sufficient detail to permit its physical
realization.
Once the software requirements have been analyzed and specified the software design involves
three technical activities - design, coding, implementation and testing that are required to build
and verify the software.
The design activities are of main importance in this phase, because in this activity, decisions
ultimately affecting the success of the software implementation and its ease of maintenance are
made. These decisions have the final bearing upon reliability and maintainability of the system.
Design is the only way to accurately translate the customer’s requirements into finished software
or a system.
Component diagrams are integral to building your software system. They help your team
understand the structure of existing systems and then build new ones. The purpose of a
component diagram is to show the relationship between different components in a system. The
component diagram shows the relationship between software components, their dependencies,
communication, location and other conditions.
40
ONLINE EXAMINATION SYSTEM
UML deployment diagram show physical view of system, taking software into real world by
showing how software gets assigned to hardware and how communicates. The deployment
diagram shows how the software components, processes, and objects are deployed into the
physical architecture of the system. It shows the configuration of the hardware units (e.g.
Computers, communication devices, etc.) and how the software components are distributed
across the units.
JJUOES (Jigjiga University Online Examination System) is server client structure architecture,
where clients access services offered by server. The deployment diagram is shown as follows.
41
ONLINE EXAMINATION SYSTEM
Persistence of our object can be achieved by relational database since it used as machine to make
object persistent. It describes the persistent data aspect of software system. Our system includes
the basic table that handles the data of system implemented using MySQL server.
Mapping class and relational table
Mapping refers how objects and their relationship are stored in relational database. The mapping
of the data to be persisted in our system is given as follows:
University Online Examination System-OES. We have listed those descriptions as follows.
Method: UpdateAdminAcc(),DeleteAdminAcc()
42
ONLINE EXAMINATION SYSTEM
43
ONLINE EXAMINATION SYSTEM
User interface design is the specification of the interaction between the system users and a
system. The process involves input mechanism design, output mechanism design, and navigation
mechanism.
Navigation mechanism is part of user interface that takes the user form one part of the
system to the other user system. That includes menus or links, buttons, icons, dialog
boxes etc.
Input design is about designing a form and its controls for GUI system.
Output design is about designing reports like detailed, summarized, exceptional, graph,
chart, text document report and extra.
In our system the menus that are functioning on the home page are the following:
44
ONLINE EXAMINATION SYSTEM
CHAPTER FIVE
5. Implementation and Testing
5.1 Introduction
The implementation phase is the most crucial phase in which it transform the design and analysis
of the system into a tangible system by writing the code to the system to be developed and make
it operational and applicable by testing and debugging the functionalities that are done. This
phase involves the construction of the actual project result during this phase that the project
becomes visible to outsiders, to whom it may appear that the project has just begun. This makes
the implementation stage more essential step to develop the required system. So, it is the most
vital and necessary stage in achieving a successful system and in giving the users confidence that
the new system will work and be effective by testing the system that is already implemented. In
this phase, the production system is installed, initial user training is completed, user
documentation is delivered, and the post implementation review meeting is held. When this
phase is completed, the application is in steady state production. Once the system is in steady-
state production, it is reviewed to ensure that we met all of the goals in the project plan for a
satisfactory result
The result of this phase consists of source code, together with documentation to make the code
more readable. This is what we call software implementation. The purpose of these activities is
to convert the final physical system specification into working model with reliable software and
hardware, document the work that has been done, and provide help for current and future users
and take care of the system.
45
ONLINE EXAMINATION SYSTEM
Random algorithm: This algorithm is used when the candidate take exam, then it
makes exam question order or ranked randomlly.the algorithm randomly order exam
question is one way of code of exam and control cheating because the question order is
randomly ranked for each candidate and the order of exam question is different from
other candidate.
5.2.2 Coding
Login
<?php
session_start();
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script type="text/javascript" src="css/javasscript.js"></script>
<style type="text/css">
input[type="text"],input[type="password"],input[type="Submit"],input[type="reset"]
{
width: 180px;
height: 30px;
}
input[type="submit"],input[type="reset"]
{
background:#170b62;
color: #fdfdfd;
box-sizing: border-box;
font-size: 20px;
height: 40px;
}
</style>
</head>
46
ONLINE EXAMINATION SYSTEM
<body>
<div class="login">
<form action=" " method="post" name="myForm" onsubmit="return validateuser()">
<h1><br> Enter UserName</h1><input type="text" name ="un"
placeholder="Enter UserName...." >
<h1> Enter Password</h1> <input type="password" name ="pass"
placeholder="Enter Password...." >
<input type="Submit" name="login" value ="Login" >
<input type="reset" name="reset" value ="Reset" >
<a href="forgot password.php">Forgot Passsword</a>
</form>
<?php
if(isset($_POST["login"]))
{
include("connection.php");
function encryptpassword($password )
{
$cryptKey='qJB0rGtIn5UB1xG03efyCp';
$passwordEncoded= base64_encode( mcrypt_encrypt( MCRYPT_RIJNDAEL_256,
md5( $cryptKey ), $password, MCRYPT_MODE_CBC, md5( md5( $cryptKey ) ) ) );
return( $passwordEncoded );
}
$uname=$_POST["un"];
$pass=$_POST["pass"];
$plaintext_password=$pass;
$password=encryptpassword($plaintext_password);
if($con)
{
//account
$sql="select * from account where username='$uname' and password='$password'";
$matchfound=mysql_query($sql,$con);
47
ONLINE EXAMINATION SYSTEM
$userexist=mysql_num_rows($matchfound);
if($userexist>0)
{
$sql=mysql_query("delete from attempt");
while($row=mysql_fetch_assoc($matchfound))
{
$id=$row["uid"];
$un=$row["username"];
$pw=$row["password"];
$status=$row["status"];
$pw_status=$row["password_status"];
}
if($pw_status=="unchanged")
{
$_SESSION['userid']=$id;
$_SESSION['oldpassword']=$pass;
header("location:change_password.php");
}
else
{
$sqll="select * from user where uid='$id'";
$matchfound1=mysql_query($sqll,$con);
while($user=mysql_fetch_assoc($matchfound1))
{
$fname=$user["ufname"];
$mname=$user["umname"];
$lname=$user["ulname"];
$role=$user["role"];
$photo=$user["photo"];
}
//store value in session
48
ONLINE EXAMINATION SYSTEM
header("location:setter/examsetterpage.php");
else if($role=="Exam Editor" && $status=="active")
header("location:editor/exameditorpage.php");
else if($role=="Registrar" && $status=="active")
header("location:Registrar/Registrar.php");
else if($role=="Department Head" && $status=="active")
header("location:dept/deptheadpage.php");
else
{
if($status=="inactive")
echo"<font color='red' size=4><b><i>Sorry Your Account Is Bolcked!!!</i></b></font>";
else
{
echo "<h1>Invalid username/passwords<h1>";
49
ONLINE EXAMINATION SYSTEM
header("location:index.php");
}
}
}
}
else
{
$count="insert";
$sql=mysql_query("select*from attempt");
$total=mysql_num_rows($sql);
$total++;
if($total>3)
{
//$sql=mysql_query("delete from attempt");
header("location:index1.php");
}
else
{
echo "<h1>Invalid username/password<h1>";
echo "<br>you are tries $total times,but allowed 4 times<h1>";
$insert=mysql_query("insert into attempt values(' ','$count')");
}
}
}
else
echo"Connection fail".mysql_error();
}
?>
</div></body>
</html>
Set Exam Question
50
ONLINE EXAMINATION SYSTEM
<?php
if(isset($_POST['savequestion']))
{
$dname=$_POST["departmentname"];
$txtquest=$_POST["txtquest"];
$txta=$_POST["txta"];
$txtb=$_POST["txtb"];
$txtc=$_POST["txtc"];
$txtd=$_POST["txtd"];
$txtansw=$_POST["txtansw"];
$qstatus="active";
$sid=$_POST["sid"];
$qtype1=$_POST["qtype"];
if($con)
{
$sql="insert into question values('
','$year','$dname','$txtquest','$txta','$txtb','$txtc','$txtd','$txtansw','$qtype','$qstatus','$sid')";
$insert=mysql_query($sql,$con);
if($insert)
echo" Question is inserted sucessfully";
else
echo" NO Question inserted inserted !!!".mysql_error($con);
}
else
echo"Connection Failed:".mysql_error($con);
}
?>
Take Exam
<?php
if(isset($_SESSION['sun'])&&isset($_SESSION['spw']))
51
ONLINE EXAMINATION SYSTEM
{
$uid=$_SESSION['$uid'];
$username=$_SESSION['sun'];
$role=$_SESSION['role'];
$login_time=$_SESSION['login_time'];
$logout_time="empty";
$count=0;//check take exam before this or not
$number=0;//role number question
//check department
52
ONLINE EXAMINATION SYSTEM
<?php
require("candmenu.php");
?>
</div><!--close menubar-->
<div id="site_content"></div>
<div id="site_content">
<div class="sidebar_container">
</div>
<div id="content">
<fieldset class="fieldset">
<br><br>
<?php
$fullname=$_SESSION['fullname'];
$uname=$_SESSION['sun'];
$role=$_SESSION['role'];
$photo=$_SESSION['sphoto'];
?>
<div style="margin: 10px;float: right;border:1px Solid #dadcdc;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);margin-top: -
15px;">
<table cellspacing="0" height="70">
<tr><td colspan="2"><center><?php echo "<img src='../editor/$photo' height=150
width=150>"?></center></td></tr>
<tr><td><b>User Name:</b></td><td><font color="#e9163c"><?php echo
$uname;?></font></td></tr>
<tr><td><b> Ro
le:</b></td><td><font color="#e9163c"> <?php echo $role;?></font></td></tr>
<tr><td>Time Allowed </td> <td style="font-weight: bold;font-size: 20px;"><div
id="showtime" ></div></td> </tr>
</table>
</div>
53
ONLINE EXAMINATION SYSTEM
<div class="style1">
54
ONLINE EXAMINATION SYSTEM
<?php
// Retrive time According to Department
$sq="select * from timer where dept='$dept' and question_type='Regular' and year='$year'";
$t=mysql_query($sq,$con);
while($row=mysql_fetch_array($t))
{
$h=$row["hour"];
$m=$row["min"];
}
?>
<script language ="javascript" >
var tim;
var hour=<?php echo $h;?>;
var min =<?php echo $m+1;?>;
var sec =0;
var f = new Date();
function f1()
{
f2();
document.getElementById("starttime").innerHTML = "Your started Exam at " + f.getHours() +
":" + f.getMinutes();
}
function f2()
{
if (parseInt(sec) > 0){
sec = parseInt(sec) - 1;
document.getElementById("showtime").innerHTML = hour+" :"+min+" :" + sec;
tim = setTimeout("f2()", 1000);
}
else {
if (parseInt(sec) == 0) {
55
ONLINE EXAMINATION SYSTEM
min = parseInt(min) - 1;
if (parseInt(min) == 0) {
var m=document.getElementById('Exam');
m.submit();
clearTimeout(tim);}
else {
sec = 60;
document.getElementById("showtime").innerHTML = "Your Left Time is " + min + " Min " +
sec + " Sec";
tim = setTimeout("f2()", 1000);
}}}}
</script>
<?php
$query="select *from question";
$rand=mysql_num_rows(mysql_query($query,$con));
//set question
$sq="select *from question WHERE dept='$dept' and status='active' and year='$year' and
question_type='Regular' ORDER BY RAND()
LIMIT $rand ";
$result = mysql_query($sq,$con);
// Loop through each records
?>
<?php
while($row = mysql_fetch_array($result))
{
$qid=$row["qid"];
$question=$row["question"];
$option1=$row["optiona"];
$option2=$row["optionb"];
$option3=$row["optionc"];
$option4=$row["optiond"];
56
ONLINE EXAMINATION SYSTEM
$number++;
?>
<div id="radio_button">
<table id="question">
<form id="Exam" action="display.php" method="post" >
<hr>
<tr ><td colspan="2"><?php echo $number;?>. <?php echo $question;?></td>
</tr>
<tr><td width="1"><input type="radio" name="<?php echo $qid;?>" value="A"/></td>
<td>A) <?php echo $option1;?> </td></tr>
<tr><td width="1"><input type="radio" name="<?php echo $qid;?>" value="B"/></td>
<td>B) <?php echo $option2;?> </td></tr>
<tr><td width="1"><input type="radio" name="<?php echo $qid;?>" value="C"/></td>
<td>C) <?php echo $option3;?> </td></tr>
<tr><td width="1"><input type="radio" name="<?php echo $qid;?>" value="D"/></td>
<td>D) <?php echo $option4;?> </td></tr>
<?php
}
?>
5.3 Testing
The test plan is designed to analyze the logic used in the implementation of the Online
Examination System. The tests will allow us to ensure correct program flow, and to determine
the error-handling capability of the system.
Once coding has begun, the testing process can be beginning and proceed in parallel. As each
program module is produced, it can be tested individually, as a part of larger program, and then
as a part of larger system.
57
ONLINE EXAMINATION SYSTEM
In this testing strategy the system components and modules are tested one by one. Each
component where first identified and then tested.
58
ONLINE EXAMINATION SYSTEM
59
ONLINE EXAMINATION SYSTEM
60
ONLINE EXAMINATION SYSTEM
61
ONLINE EXAMINATION SYSTEM
62
ONLINE EXAMINATION SYSTEM
When admin do not insert all the required data of the user the system will display value
required message and enables to enter data again. Since data entry interface of all user is
similar the same error message will be displayed.
Figure 5. 10 Success message for user adding deleting and updating done correctly
Admin page to manage faculty, department and course to the system (missed value)
testing:
While admin manages faculty, department and course if data missed while insertion,
value required message will be displayed.
63
ONLINE EXAMINATION SYSTEM
Admin page to manage faculty, department and course to the system (correct value)
testing:
When admin entered the required values correctly the success message will be displayed.
5.7 Installation
After installing both Xampp server and Adobe Dreamweaver software do the following steps
Step1
Get the folder “Final project “from the Developing Team.
Step 2
Copy the folder to WWW folder in the c: \xampp\www
64
ONLINE EXAMINATION SYSTEM
After doing these steps again, copy the folder “Online examination system data” from the
Developing Team then.
Step3
Paste into the folder ”data “in the C: \XampP\www\Data
Step4
Installation is finished.
65
ONLINE EXAMINATION SYSTEM
Chapter Six
6. Conclusion and Recommendation
6.1 Conclusion
Considering the drawbacks of the existing system and importance of new technologies the
developed system, Jigjiga University Online Examination system is very useful to simplify
examination system of Jigjiga University. Therefore a great striving played for this project of
Jigjiga University Online Grade Report Generation System to be developed.
The system performs works better than existing system (usability, speed, efficiency and
effectiveness). Security also included in this system developed and every user can access the
required services. The system is also very useful in minimizing time and other utilities wastage.
JJUOES system is developed to give the effective examination process that satisfies the need of
all users in the system.
An effort has been made to study web based Online Examination system for Ethiopian higher
education institutes as partial fulfillment in Information technology. Web based Online
Examination system is computerized Exam taking system, exam marking and view exam result
system automatically. The system solve the problems which occur manually such as un-
readability of candidate answer or question, manual correction error, view results to candidate
after finish exam immediately and other problems which are occur in manual system. The system
is web-based application, which will host in the institute extranet network and is available to the
candidate within the institute as well as the exam setter set or prepare exam question according to
their department and academic year in the system. The exam setter not only prepare exam but
also can update or modify question for own departments. The exam taken to graduate student at
higher education institutes and automatically show the result status of each candidate according
to their identity. This is a very modern and qualified way of candidate assessment technique.
Because it is free from human intervention except adding questions and the software
management.
This project has been prepared with the objective of developing a new web based online
examination system for different higher educational institutions in Ethiopia the main objectives
of this project are to simplify and qualify the candidate evaluation/assessment mechanism by
66
ONLINE EXAMINATION SYSTEM
providing automatic exam process and exam marking techniques. It provides on time exam
result, with no postpone unless technical problem on computers, electricity happens. The new
system will solve the current system drawbacks by making each Exam questions available
digitally and usable anywhere within the institute network.
6.2 Recommendation
Current Jigjiga University Examination System is manual system or file based system and far
away from advanced technology and information. Since this developed system is advanced our
system have to recommend by Jigjiga University to accept and use this system because it is easy
to use and save the time and resources’ for the university.
To use the system properly the all candidate must take computer training. The extranet network
connection must also available in all places. In addition to these the electricity must available in
all place and the users must be familiar to the system.
67
ONLINE EXAMINATION SYSTEM
References
1. [1] JJUOES documentation Phase I
68
ONLINE EXAMINATION SYSTEM
Appendix
Symbol Description
Actor
System boundary
Decision
Use case
class
Deployment diagram
Message line extends from the lifeline of one object to the lifeline
of another object.
Include, relates to the include use case to indicate inserted behavior
69
ONLINE EXAMINATION SYSTEM
70