Upload
others
View
2
Download
0
Embed Size (px)
Citation preview
STUDENT SPONSORSHIP SYSTEM
RAJA NURSYUHADA BINTI RAJA ARIF
BACHELOR OF COMPUTER SCIENCE
(SOFTWARE DEVELOPMENT) WITH HONOURS
UNIVERSITI SULTAN ZAINAL ABIDIN
2018
STUDENT SPONSORSHIP SYSTEM
RAJA NURSYUHADA BINTI RAJA ARIF
Bachelor of Computer Science (Software Development) with Honours
Faculty of Informatics and Computing
Universiti Sultan Zainal Abidin, Terengganu, Malaysia
MAY 2018
i
DECLARATION
I hereby declare that this report is based on my original work except for quotations and
citations, which have been duly acknowledged. I also declare that it has not been
previously or concurrently submitted for any other degree at Universiti Sultan Zainal
Abidin or other institutions.
Name : Raja Nursyuhada binti Raja Arif
Date: ..........................................
ii
CONFIRMATION
This is to confirm that :-
The research conducted and the writing of this report was under my supervision.
Name : Dr Wan Aezwani binti Wan Abu Bakar
Date : ..........................................
iii
DEDICATION
First, praise to Allah s.w.t for blessing me and ease me to complete my final
year project, Student Sponsorship System using Weighted Sum Method.
Second, I would like to take this opportunity to express my gratitude to my
supervisor, Dr Wan Aezwani binti Wan Abu Bakar for all the guidance, advice and
support towards to this project. Under her supervision, I am able to complete my
final year project on time successfully.
Third, I am also thanks to my parent especially for their advice and moral
support. Then, thank you also to all my friends for their help and support that
encouraged me to finish up my final year project.
iv
ABSTRACT
Sponsoring something or someone is the act of supporting a person, or an
organization financially or through the provision of products or services. Normally,
it is hard for students to further study abroad. They would have to go to a number of
places in search for good sponsorship companies and fill up a lot of forms manually
especially for tahfiz student. Student also need to go for the interview before they get
the sponsorship(problem). In conclusion, this system makes it easier for the students
to receive their sponsorship on time. The implementation of Student Sponsorship
System (SSS) is done using Weighted Sum Method. The Weighted Sum Method is a
multi-criteria decision making method for evaluating a number of alternatives in lieu
of a number of decision criteria(technique). SSS is a system for tahfiz student that
have Sijil Tinggi Agama Malaysia (STAM) qualification to further study abroad.
From this system, student can choose which company they want to get the
sponsorship. Student needs to log in and enter the qualification such as STAM result.
v
ABSTRAK
Penajaan sesuatu atau seseorang adalah tindakan membantu seseorang, atau
organisasi secara kewangan atau melalui penyediaan produk atau perkhidmatan.
Biasanya, sukar untuk seseorang pelajar untuk melanjutkan pelajaran ke luar negara.
Mereka perlu pergi ke beberapa tempat untuk mencari syarikat penajaan yang baik
dan mengisi banyak borang terutama untuk pelajar tahfiz. Pelajar juga perlu
menghadiri sesi temuduga sebelum mendapat tajaan. (Masalah). Kesimpulannya,
sistem ini memudahkan para pelajar untuk menerima penajaan mereka tepat pada
waktunya. Pelaksanaan Sistem Penajaan dibangunkan dengan menggunakan Kaedah
Jumlah Berwajaran. Kaedah Jumlah Berwajaran adalah kaedah membuat keputusan
pelbagai kriteria untuk menilai beberapa alternatif dari segi beberapa kriteria
keputusan. (teknik) Sistem Penajaan Pelajar adalah sistem untuk pelajar tahfiz yang
mempunyai kelayakan STAM untuk melanjutkan pelajaran ke luar negara. Dari sistem
ini, pelajar boleh memilih syarikat mana yang mereka mahu mendapatkan penajaan.
Pelajar perlu log masuk dan masukkan kelayakan mereka seperti markah CGPA
mereka.
vi
TABLE OF CONTENTDECLARATION……………………………………………………………………….iCONFIRMATION…………………………………………………………………..…iiDEDICATION……………………………………………………………………..….iiiABSTRACT……………………………………………………………………….…..ivABSTRAK………………………………………………………………………..……vTABLE OF CONTENT……………….………………………………………………viLIST OF TABLES…………………………………………………………………...viiiLIST OF FIGURES………………………………………………………………...…ixLIST OF ABBREVIATIONS…………………………………………………………xi
CHAPTER 1INTRODUCTION1.1 Introduction.............................................................................................................11.2 Project Background................................................................................................ 21.3 Problem Statement..................................................................................................31.4 Objectives.................................................................................................................41.5 Project Scope........................................................................................................... 5
1.5.1 Users Scope..................................................................................................... 51.5.2 System Scope.................................................................................................. 6
1.6 Limitation of Works................................................................................................61.7 Expected Results..................................................................................................... 71.8 Gantt Chart............................................................................................................. 7
CHAPTER 2LITERATURE REVIEW.............................................................................................82.1 Introduction……………………………………………………………………….82.2 Existing system that related with Weighted Sum Method……………………..92.3 Research comparison between AHP, TOPSIS and WSM…………………….112.4 Research journal between WSM……………………………………………….122.5 Student Sponsorship System between WSM…………………………………..132.6 Chapter Summary……………………………………………………………….14
CHAPTER 3METHODOLOGY......................................................................................................153.1 Introduction...........................................................................................................153.2 System Development Methodology......................................................................16
3.2.1 Initial Planning Phase....................................................................................173.2.2 Analyze Phase............................................................................................... 173.2.3 Design Phase................................................................................................. 173.2.4 Implementation Phase................................................................................... 183.2.5 Testing Phase.................................................................................................183.2.6 Evaluation Phase........................................................................................... 183.2.7 Deployment Phase.........................................................................................183.2.8 Project Wrap-Up............................................................................................18
3.3 Software and Hardware Requirement................................................................193.3.1 Hardware Requirement..................................................................................193.3.2 Software Requirement...................................................................................20
3.4 Framework.............................................................................................................213.5 Context Diagram................................................................................................... 22
vii
3.6 Data Flow Diagram...............................................................................................233.6.1 Data Flow Diagram Level 1 ( Manage Student ).......................................... 26
3.7 Entity Relationship Diagram............................................................................... 273.8 Data Dictionary..................................................................................................... 29
3.8.1 Table Users....................................................................................................303.8.2 Table Student.................................................................................................303.8.3 Table Admin..................................................................................................313.8.4 Table Criteria.................................................................................................313.8.5 Table Sponsor................................................................................................323.8.6 Table StudSponsor........................................................................................ 323.8.7 Table Report.................................................................................................. 32
3.9 Chapter Summary.................................................................................................33
CHAPTER 4IMPLEMENTATION................................................................................................ 344.1 Introduction...........................................................................................................344.2 Solution Complexity..............................................................................................354.3 Proof Of Concept...................................................................................................36
4.3.1 Interface Before Login.................................................................................. 364.3.2 Student Interface............................................................................................374.3.3 Sponsor Interface...........................................................................................404.3.4. Admin Interface............................................................................................414.15 Report List after Calculation.......................................................................... 444.16 : Report List of student...................................................................................44
4.4 Chapter Summary.................................................................................................45
CHAPTER 5RESULT & TESTING................................................................................................465.1 Introduction...........................................................................................................465.2 Testing Analysis.....................................................................................................47
5.2.1 Black Box Testing......................................................................................... 475.2.2 Test Case....................................................................................................... 47
5.3 Chapter Summary.................................................................................................51
CHAPTER 6DISSCUSSION AND CONCLUSION...................................................................... 526.1 Introduction...........................................................................................................526.2 System Contribution............................................................................................. 536.3 Project Limitation................................................................................................. 536.4 Future Works........................................................................................................ 546.5 Chapter Summary.................................................................................................54
REFERENCES………………………………………………………………………55APPENDIXES……………………………………………………………………….56
viii
LIST OF TABLES
NO TABLES PAGE
2.1 Comparising Existing System vs Student Sponsorship System 10
2.2 Comparison between AHP, TOPSIS and Decision Tree 11
2.3 Formula of Weighted Sum Method 13
2.4 Criteria and Weightage 13
2.5 Result from Calculation using Weighted Sum Method 14
3.1 Table Users 30
3.2 Table Student 30
3.3 Table Admin 31
3.4 Table Criteria 31
3.5 Table Sponsor 32
3.6 Table StudSponsor 32
3.7 Table Report 32
5.0 Test Case for Success Login 47
5.1 Test Case for Fail Login User 47
5.2 Test Case for Add User 48
5.3 Test Case for Delete User 48
5.4 Test Case for Add Student Information 48
5.5 Test Case for Add Criteria Detail 49
5.6 Test Case for Student’s Sponsor Detail 49
5.7 Test Case for Calculate Criteria 49
5.8 Test Case for view Report 50
5.9 Test Case for view Report 50
5.10 Test Case for Logout 50
ix
LIST OF FIGURES
NO FIGURES PAGE
1.1 Gantt Chart 7
2.1 Selangor Zakat System 9
2.2 Selangor Zakat Sponsorship Form Manual 9
3.1 Iterative and Incremental Development 16
3.2 Framework 21
3.3 Context Diagram 22
3.4 Data Flow Diagram Level 0 23
3.5 Data Flow Diagram Level 1 for Manage Student 26
3.6 Entity Relationship Diagram (ERD) 27
4.1 Tips Scale 35
4.2 Login page 36
4.3 Student Information Detail 37
4.4 Add Criteria Detail 37
4.5 Sponsor Selection Detail 38
4.6 Report Student Detail 38
4.7 Report Student with total marks according course 39
4.8 Change password 39
4.9 Add Profile 40
4.10 Report Student with total marks 41
4.11 Add User 41
4.12 View User 42
4.13 List of Calculate Criteria 42
4.14 Calculate Criteria Detail 43
4.15 Calculate criteria result per student 43
x
4.16 Report List after calculation 44
4.17 Report List of student 44
4.18 Report List of sponsor 45
xi
LIST OF ABBREVIATIONS
CD CONTEXT DIAGRAM
DFD DATA FLOW DIAGRAM
ERD ENTITY RELATIONSHIP DIAGRAM
SSS STUDENT SPONSORSHIP SYSTEM
WSM WEIGHTED SUM METHOD
1
CHAPTER 1
INTRODUCTION
1.1 Introduction
This section is the introduction of Student Sponsorship System. It provides a basic
overview of the whole system. This chapter explains about the project background,
problem statement, objectives, project scope and milestone. Background of the system
discusses about the basic information about this system while problem statement
discusses about related issue regarding the system. The objectives states the main goal
of development of this system. The scope describes the user of this system and what
can they do and also the system itself. Lastly, milestone is planning of the system by
week.
2
1.2 Project Background
Student who has successfully obtained shahadah certificate basically wants to
study abroad in the Middle East to get more knowledge about here and hereafter. But,
he/she may be rejected by the institute due to the failure to fulfill the standards
requirements. The best solution is to further STAM examination to fulfill their dream
to further abroad.
Study abroad is the dream of all students. Students may be sponsored by the
government or fully cover the expenses by themselves in order to go to the Middle
East countries. The cost for the transportation and the whole semester is burdensome
on many students. Hence, they need a lot of money prepared beforehand to study
abroad and ultimately, finish their studies. System that ables to sponsor the student to
study in the Middle East countries are already exist but most of it was done manually
by filling in a lot of forms, send to the selected sponsor and need to go for the
interview. Some students also have to go to a number of places in search for good
sponsorship companies. As a result, the Student Sponsorship System is develop to
upgrade the manual system.
University that offers for Student Sponsorship System is Al-Azhar University.
The course available is ‘Syariah Islamiah’, ‘Usuluddin’, ‘Bahasa Arab’, ‘Dakwah
Islamiah’and ‘Dirasat Islamiah wal Arabiah’. Both gender, woman and man can apply
for the system.
Based on the system, each student is evaluated according to three criteria such as
examination result, leadership, income parent, number dependent parent and
co-curriculum activity of the student. The student also needs to make sure that the
chosen university and chosen course are offered in the system. This is because in the
SSS only have selected course and university that offer based on Malaysian
3
Qualification Agency(MQA). The SSS ables to calculate the best student efficiently
by calculate mark criteria by using Weighted Sum Method. As the result, the system
will display the best student that get offer by the company. Student who gets higher
marks are eligible for the sponsorship. In conclusion, this system helps to save time in
selecting the best student to get the sponsorship.
1.3 Problem Statement
Currently, it is quite difficult to get the sponsorship to study in Middle East. The
student needs to go to many places, to get any sponsor to further their study. Usually,
student need to fill in a lot of form and should be post the form to the sponsor for the
evaluation. When their names are eligible to go for the next stage, they need to go for
the interview to get the sponsorship. From this scenario, it can be concluded that :-
Using manual form may not be practical nowadays and it is not
efficient. Manual handwriting is hard to understand. It is also wasting of time
because need to go for the interview and also difficult for the student to go for the
interview because of the location issues.
Student which is study in the Middle East usually does not get
sponsor before they are study abroad. This make the student need to go to many
places to get some donation or their parent need to support them. From this
situation, not all family are able to support for all the academic financing.
The selection also can be ineffective due to misunderstanding
answer of the student during the interview session. It may happen because of
human mistake. The tendency for the mistakes occur is high also due to
miscalculation of the criteria in choosing the student.
4
Due to present scenario, there is urgency to build a system that helps the student in
getting sponsorship to study abroad.
1.4 Objectives
Objectives usually the specific target set to achieve the goal. The objectives of SSS
are described as below :-
To design Student Sponsorship System(3S) especially student
that have tahfiz certificate with STAM certificate.
To implement Weighted Sum Method in Student Sponsorship
System(SSS) to find ranking based on criteria.
To test and evaluate the system for its functionality.
5
1.5 Project Scope
The scopes of this project are identified and make the system development process
easier. The project scopes explain who involves in the system and explain the function
of the scopes in the system. The Student Sponsorship System involves admin and
users which are student and sponsor. The scope of the system is divided into two parts
which is user scope and system scope.
1.5.1 Users Scope
The users are divided into three category which are admin, student and sponsor.
Admin
i. Able to login as admin
ii. Able to register student and sponsor
iii. Able to manage student criteria
iv. Able to make a report for student and sponsor
Student
i. Able to login as student
ii. Able to fill in the online form
iii. Able to view the report
Sponsor
i. Able to login as sponsor
ii. Able to view the report
6
1.5.2 System Scope
This system is used to get the evaluation criteria as set by the system and then analyze
the criteria given. From the criteria given, the system will calculate the mark of
student criteria using of Weighted Sum Method(WSM) that calculates a result for each
student.
Register Module
Login Module
Form Module
Calculate the mark of student detail
Generate report
1.6 Limitation of Works
The limitations of this system are :-
This is only eligible for student with STAM certificate
holder who wishes to further study abroad in the Middle
East.
The criteria that involves in the system are only on student
examination result, personality or leadership and
co-curriculum.
7
1.7 Expected Results
The expected results of SSS are :-
Able to calculate the criteria marks of the student.
Student able to get the sponsorship on the time.
1.8 Gantt Chart
The Gantt Chart for this system:-
Figure 1.1 : SSS Gantt Chart
8
CHAPTER 2
LITERATURE REVIEW
2.1 Introduction
Literature review is the most important criteria in research process to develop a
system. The processes that involve in this chapter is identifying, evaluating and
summarizing the existing body of a complete research. Other than that, this chapter
compares with the existing system and it is such a guideline to develop a new system
so that it will be more user-friendly system and make the solution to the problem in
the existing system. Based on this project, Weighted Sum Model (WSM) is applied.
The WSM is under Multiple-Criteria-Decision-Making(MCDM). There are several
types of MCDM such as Analytic Hierarchy Process(AHP), Technique for Order
Preference by Similarity to Ideal Solution(TOPSIS) and Weighted Sum
Method(WSM) [1].
9
2.2 Existing system that related to Student Sponsorship System
Figure 2.1 : Selangor Zakat System
Figure 2.2 : Selangor Zakat Scholarship FormManual
10
According to Figure 2.1, Selangor Zakat System provides a lot of information and a
lot of function inside the system include download e-library, customer services and
download form for scholarship. While, the manual form in Figure 2.2, Pusat Selangor
Zakat (PSZ) provides zakat scholarship for those student that want to study abroad.
The available institute are Mesir, Maghribi and Jordan. Student needs to fill in all the
information required and send the form to the address specified. Lastly, Table 2.1
shows the simplest differences of the features between the existing system and
Student Sponsorship System.
Table 2.1 :Existing System vs Student Sponsorship SystemFeatures Existing System Student Sponsorship
System
Authentication No Yes
The student detail form Yes Nohave possibility to lost
Need to go for the Yes Nointerview
Method to send the form Manual Online
11
2.3 Research Comparison between AHP, TOPSIS and Decision Tree
There are some comparison between AHP, TOPSIS and Decision Tree that related
with SSS. There are :-
Table 2.2 : Comparison between AHP, TOPSIS and Decision TreeAuthor Year of Name of Journal Method Objectives
Publication- T. Jeevalatha 2014 Performance Decision Tree -To predict
Analysis of student- N. Ananthi Undergraduates selection in
Students placement- D. Saravana PlacementKumara Selection[2]
- Shofwatul 2011 A Fuzzy Topsis The Technique - To select the‘Uyun Multiple for Order of candidates for- Imam Riadi Attribute Preference by academic and
Decision Making Similarity to non-academicfor Scholarship Ideal Solution scholarships.Selection[3] (TOPSIS)
- Nur Afriza 2017 Application of - Analytic - To find out
Bakri Analytic Hierarchy the best- Nur Idalisa Hierarchy Process Process [4] student whoNordin for Selecting Best excellent in- Wan Azrina Student [4]. academic andWan Azaman extracuricullar
activity.
12
2.4 Research article/journal that related with the Weighted Sum Method
technique.
There are three example from research articles that use Weighted Sum Method
(WSM) as a technique. Decision Support System for Evaluating and Monitoring
Teacher Performance [5] is one of them. The system use KPI-MT system use a
WSM to calculate an overall score of teachers, and also determine whether the
performance of teachers in the selected schools are very good, good, fair, poor or weak.
The criteria is evaluate by principal through the system. The article also state that the
system is help to make a decision about the performance of the teachers, in fact, can
organize the useful information from the raw data. In this article also state that using
WSM is more easier compare to Analytic Hierarchy Process(AHP). This is because
t h e t i m e t o a n a l y z e u s i n g WSM i s s h o r t c om p a r e u s i n g AH P .
Next,Multi Criteria Wind Turbine Selection by Shafiqur Rehman, Salman A.Khan
[6]. Wind energy is becoming a potential source for renewable and clean energy.
Unfortunately, the task of selecting an appropriate, site specific turbine is complex
problem. So, to get the most suitable selection, WSM technique is use by using the
decision criteria in the system like hub height, rotor diameter, cut in speed of wind,
rated speed of wind and rated power. All weight are assign the same value of 0.2.
From this criteria and weight, the system can select which wind turbine is the best.
Then, Multi-Attribute Decision Making Using Simple Additive Weighting and
Weighted Product in Food Choice by Adriyendi [7]. Food choice aim to find the
solution on lack of food. Food choice can be doing with diversification. Food
13
diversification aims to find best choice of food alternatives. From this journal, the
food criteria is such as based on protein, carbohydrate and energy. Food alternative is
such as rice, corn and potato. As the result from the calculation, WSM resulting
decision or recommendation based on criteria food alternatives with the highest value.
2.5 Student Sponsorship System by Using Weighted Sum Method
The formula for this technique :-
Table 2.3: Formula of Weighted Sum Method
j weighted sum = w1j1 +w2j2 + …. + wnjn
Where ;
w = the weightsj = the value,
Based on the comparison between three types of MCDM and article that related with
the technique, WSM is chosen as the most suitable method for the Student
Sponsorship System. This is because WSM occurs in the selection criteria. During
system development, the criteria involve in the system are current examination result
of student, personality or leadership and their co-curriculum, position in organization,
father’s income, mother’s income and number of dependent parent. In SSS, the
criteria scenario is static and will not change.
The example Calculation Of Weighted Sum Method for staff are :-
Table 2.4: Criteria and Table 2.4 :Weightage and CriteriaCriteria, C Total Mark Weight, W
Work Achievement 30 80
Knowledge and Skills 10 10
Personal Quality 10 10
14
Table 2.5 : Result from calculation using Weighted Sum MethodID Work Knowlegement and Personal TotalNumber Achivement Skills (25%) Quality (15%)
(50%)S001 (20/30) * 80 (7/10) *10 (9/10) * 10 69.33
S002 (26/30) * 80 (8/10) *10 (6/10) * 10 82.33
S003 (22/30) * 80 (5/10) *10 (7/10) * 10 70.66
From the example of calculation, it is concluded that Weighted Sum Method is a score
that is based on alternative. In this example, staff is the alternatives and calculation is
based on criteria. Weight for each criteria is determined by the head of the staff.
2.6 Summary
This chapter provides fully explanation about the technique that used in the Student
Sponsorship System. Based on this chapter, it shows that literature review is important
in the development of the project. This chapter also provide more understanding how
to implement Weighted Sum Method in the development of Student Sponsorship
System. The next chapter explains in details about the methodology in the project.
15
CHAPTER 3
METHODOLOGY
3.1 Introduction
This chapter explains the details of the methodology that is being used in this system.
The selected methodology is the Iterative and Incremental Development Model. In this
chapter, it explains in more detail about every phases that involve on this project
development . Other than that, also present about the Context Diagram(CD), Data
Flow Diagram(DFD), Entity Relationship Diagram(ERD) and framework of system.
16
3.2 System Development Methodology
This part explains how to implement the methodology to the development of the
system. The methodology used is the Iterative and Incremental Methodology. This
model is the most suitable model because this model is any combination of both
iterative design and incremental design. This model also allows to develop a system
through repeated cycle and in a smaller portions of time.
Figure 3.1 explains about the steps of this methodology. There are eight steps
involved which is Initial Planning Phase, Analyze Phase, Design Phase,
Implementation Phase, Testing Phase, Evaluation Phase, Deployment Phase and
Project Wrap-Up.
Figure 3.1 : Iterative and Incremental Development
17
3.2.1 Initial Planning Phase
All possible requirements of the system to be developed are captured in this phase
and documented in a requirement specification document. During this phase, all
activities are planned starting with discussion and proposed title of the project with
the supervisor. From the discussion, the researcher agrees to make Student
Sponsorship System as the title of project.
3.2.2 Analyze Phase
In this phase, it discusses about problem statement, objectives, Gantt chart, scope and
limitation of the system. All the information is gathered from internet, which is
analyzed from the journal, article and from similar system. This phase also analyzes
the existing system and all requirement that need to develop a new system.
3.2.3 Design Phase
The requirement specifications from first phase are studied in this phase and the
system design is prepared. This system design helps in specifying hardware and
system requirements and helps in defining the overall system architecture. In this
phase, Context Diagram(CD) and Data Flow Diagram(DFD) Level 0 and 1 are
designed by using E-Draw. Entity Relationship Diagram(ERD) was also designed
during this phase. This phase is as a guideline of flow of the system.
18
3.2.4 Implementation Phase
With inputs from the system design, the system is first developed in small programs
called units, which are integrated in the next phase. Code the coding is begins in this
phase. Each modules is developed using PHP language and MySQL. Notepad++ will
be used to code the coding of the system.
3.2.5 Testing Phase
All the units developed in the implementation phase are integrated into a system after
testing of each unit. This phase is use to test any faults and failure. Any error that
found during this phase will be fixed until there is no error occur. This phase is
important before release to the target user.
3.2.6 Evaluation Phase
During this phase, the overall module is presented. The system is evaluated
before deploying to the end user.
3.2.7 Deployment Phase
Once the functional and non-functional testing is done, the system is release to target
user environment. The system will be managed and use by the user. Any changing of
requirement may force to redesign the system.
3.2.8 Project Wrap-Up
In this phase, all processes are accomplished, and documented.
19
3.3 Software and Hardware Requirement
The requirement of software and hardware are the most important part of the project to
make a successful project. This section will show list of software and hardware that
include in the progress of the system.
3.3.1 Hardware Requirement
i. Laptop
- Processor : Intel® Cel eron® CPU N3150 @1.60 GHz
- Installed Memory(RAM) : 4.00GB
- System Type : x-64 based processor
- Operating System : Windows 10
- Function : To develop the system.
ii. Printer
- Type : Canon E400 Series Printer
- Function : To print the report
iii. Pendrive
- Type : Kingston(16GB)
- Function : For transferring data.
20
3.3.2 Software Requirement
i. Snipping Tool
- Tools to capture and screenshot images.
ii.Local Web Server (XAMPP Server)
- Local server to run and test
application. iii.MySQL Workbench
- Database for the system.
iv.Web Browser(UC Browser)
- Is used as platform of this system to run.
v.E-Draw
- Use to draw diagram
vi.WPS Writer, WPS Presentation
- Use to prepare documentation of the project, for creating report, view
journal and presentation slides.
ix.Notepad++
- Use to code the program.
21
3.4 Framework
The framework of SSS are shown as below :-
Figure 3.2 : SSS Framework
22
3.5 Context Diagram
Context Diagram is drawn in order to define and clarify the boundaries of the software
system. It use to identify the flows of the information between the system and external
entities. A possible Context Diagram for the Student Sponsorship System is shown in
Figure 3.3.
Figure 3.3 : Context Diagram
The context diagram for the Student Sponsorship System is shown in the figure above.
The Student Sponsorship System process is at the center of the diagram. The three
entities (ADMIN, STUDENT and SPONSOR) are placed around the central process.
Eleventh data flows are involved in the interaction between the central process and the
entities. The ADMIN entity has one incoming data flow which is VIEW STUDENT
RESULT but has three outgoing data flows (REGISTER, LOGIN and MANAGE
CRITERIA CALCULATION). The STUDENT entity has one incoming data flow,
(VIEW STUDENT RESULT) and has four outgoing data flows which are (LOGIN,
STUDENT INFORMATION, STUDENT’S SPOSNOR INFORMATION and
CRITERIA INFORMATION). While for SPONSOR there are one outgoing data flow
which is LOGIN and also has one incoming data flow which is VIEW STUDENT
RESULT.
23
3.6 Data Flow Diagram
Figure 3.4 : Data Flow Diagram Level 0
24
Figure 3.4 illustrates DFD Level 0. The DFD has three entities which is STUDENT,
ADMIN and SPONSOR. REGISTER, LOGIN, MANAGE STUDENT, MANAGE
STUDENT’S SPONSOR INFORMATION, MANAGE CRITERIA, MANAGE
CRITERIA CALCULATION and REPORT RESULT are seventh process that
involve in the system. There are six data stores created in the system which is
STUDENT, ADMIN, SPONSOR, STUDSPONSOR , CRITERIA and
EVALUATION.
1. ADMIN input username, password and roles as REGISTER
process which output username and password into STUDENT
data store.
2. ADMIN input username, password and roles as REGISTER
process which output username and password into SPONSOR
data store.
3. STUDENT enter username and password to LOGIN process
which output username and password into STUDENT data
store.
4. ADMIN enter username and password to LOGIN process
which output username and password into ADMIN data store.
5. SPONSOR enter username and password to LOGIN process
which output username and password into SPONSOR data
store.
6. When STUDENT enter the student information, a process
name MANAGE STUDENT will send the student record into
STUDENT data store.
25
7. STUDENT enter the criteria information into the
MANAGE CRITERIA process and the criteria information
will save in the criteria record and send into CRITERIA data
store
8. STUDENT choose the sponsor into MANAGE STUDENT’S
SPONSOR process and the sponsor information will save in
the studsponsor record and send into STUDSPONSOR data
store.
9. In the GENERATE REPORT RESULT process, criteria
record, student record, student’s sponsor record and
calculation criteria record are get from the CRITERIA,
STUDSPONSOR and STUDENT data store and send to the
ADMIN, SPONSOR and STUDENT to view the student
result.
26
3.6.1 Data Flow Diagram Level 1 ( Manage Student )
Figure 3.5 : Data Flow Diagram Level 1 for Manage Student
Figure 3.5 shows that level 1 DFD for the 3.0 process which is MANAGE STUDENT.
The diagram illustrates all the operation manage by STUDENT and ADMIN in the
system.
1) An STUDENT send STUDENT INFORMATION. The UPDATE
STUDENT process input STUDENT RECORD into STUDENT data
store.
2) An ADMIN inputs CHECK STUDENT RECORD that is processed by
CHECK STUDENT RECORD. The process then sends CHECK
STUDENT RECORD to STUDENT data store. The data store sends back
STUDENT RECORD to the ADMIN through CHECK STUDENT
RECORD process.
27
3.7 Entity Relationship Diagram
An entity relationship Diagram(ERD) illustrates system entities information and
entities relationship. ERD composes of three things which is identifying entities,
determine entities interaction and cardinality of the relationship. An ERD for the
Student Sponsorship System is shown in Figure 3.7.
Figure 3.6 : Entity Relationship Diagram(ERD)
28
Interaction of USER and ADMIN
- One to Many Relationship
- An user can have one or many admin
- But a admin can only have by a user
Interaction of USER and STUDENT
- One to Many Relationship
- An user can have one or many student
- But a student can only have by a user
Interaction of USER and SPONSOR
- One to Many Relationship
- An user can have one or many sponsor
- But a admin can only have by a sponsor
Interaction STUDENT and CRITERIA
- One to Many Relationship
- A student can answer one or many criteria
- But a criteria can be answer by one student
Interaction STUDENT and STUDSPONSOR
- One to Many Relationship
- A student can answer one StudSponsor
- But StudSponsor can be answer by many stud
29
Interaction CRITERIA and REPORT
- One to Many Relationship
- A criteria can make many report
- But a report can make by many criteria
Interaction ADMIN and REPORT
- One to Many Relationship
- A admin can calculate one calculation
- But a calculation can only be calculation by an admin
3.8 Data Dictionary
Data Dictionary is contains a list of files in the database and the name and type of each
field. The Data Dictionary for SSS are as below :-
1) Users
2) Student
3) Admin
4) Criteria
5) Sponsor
6) StudSponsor
7) Report
30
3.8.1 Table Users
The possible attribute for Table Users are three attributes and shown in Table 3.1
below.
Table 3.1 Table UsersNo Attributes Description Type Key Length Default Null1 userID ‘userID’ represent
key to allowauthorized admin,student or sponsorto login into thesystem
VARCHAR PRIMARY 10
2 pswd ‘pswd’ representthe password toallow admin,student or sponsorto login into thesystem
20
3 roles ‘roles’ representthe roles to allowadmin, student orsponsor to logininto the system
20
3.8.2 Table Student
The possible attribute for Table Student are sixteen attributes and shown in Table 3.2
below.
Table 3.2 Table StudentNo Attributes Description Type Key Length Default Null1 studID ‘studID’ represent
key to allowauthorized admin,student or sponsorto login into thesystem
VARCHAR PRIMARY 20
2 studName ‘studName’represent name ofstudent.
VARCHAR 50
3 studIC ‘studIC’ representIC of student
INT 12
4 LotNo ‘LotNo’ is part ofactor’s address.
VARCHAR 40
5 RoadName
‘RoadName’ ispart of actor’saddress.
VARCHAR 77
6 Poscode ‘Poscode’ is partof actor’s address.
INT 11
7 City ‘City’ is part ofactor’s address.
VARCHAR 30
8 studphoneNo
‘studphoneNo’ isstands for phonenumber of student
INT 11
9 emel ‘enel’ representemel of student.
VARCHAR 50
10 course ‘course’ representcourse of student.
VARCHAR 50
11 fatherName
‘fatherName’represent name of
VARCHAR 50
31
student’s father.12 fatherOcc ‘fatherOcc’
representoccupation ofstudent’s father
VARCHAR 50
13 fatherPhoneNo
‘fatherPhoneNo’represent phonenumber ofstudent’s father
INT 11
14 motherName
‘motherName’represent name ofstudent’s mother
VARCHAR 50
15 motherOcc
‘motherOcc’representoccupation ofstudent’s mother.
VARCHAR 50
16 motherPhoneNo
‘motherPhoneNorepresent phonenumber ofstudent’smother.
INT 11
3.8.3 Table Admin
The possible attribute for Table Admin are four attributes and shown in Table 3.3
below.
Table 3.3 Table AdminNo Attributes Description Type Key Length Default Null1 adminID ‘adminID’
represent key toallow authorizedadmin, student orsponsor to logininto the system
VARCHAR PRIMARY 20
2 adminName
‘adminName’represent name ofstudent.
VARCHAR 50
3 adminEmel
‘adminEmel’represent IC ofstudent
VARCHAR 50
4 adminPhoneNum
‘adminPhoneNum’ is part of actor’saddress.
INT 11
3.8.4 Table Criteria
The possible attribute for Table Criteria are seven attributes and shown in Table 3.4
below.
Table 3.4 Table CriteriaNo Attributes Description Type Key Length Default Null1 cgpa ‘cgpa’ represent
cgpa of student.FLOAT PRIMARY
2 koko ‘koko’ representkoko of student.
FLOAT
3 positionOrg
‘positionOrg’represent koko ofstudent.
FLOAT
4 fIncome ‘fIncome’represent koko of
FLOAT
32
student.5 mIncome ‘mIncome’
represent koko ofstudent.
FLOAT
6 noDepenParent
‘noDepenParent’represent koko ofstudent.
FLOAT
7 studID ‘studID’ representthe unique id thatwill be used whenenter weightagefor the criteria.
VARCHAR FOREIGN 20
3.8.5 Table Sponsor
The possible attribute for Table Sponsor are three attributes and shown in Table 3.5
below.
Table 3.5 Table SponsorNo Attributes Description Type Key Length Default Null1 sponsorI
D‘sponsorID’represent sponsorof student.
VARCHAR PRIMARY 20
2 nameSP ‘nameSP’represent nameSPof student.
VARCHAR 50
3 phoneSP ‘phoneSP’representphoneSP ofstudent.
INT 11
3.8.6 Table StudSponsor
The possible attribute for Table StudSponsor are two attributes and shown in Table 3.6
below.
Table 3.6 Table SponsorNo Attributes Description Type Key Length Default Null1 studID ‘sponsorID’
represent sponsorof student.
VARCHAR FOREIGN 20
2 studName ‘nameSP’represent nameSPof student.
VARCHAR FOREIGN 50
3.8.7 Table Report
The possible attribute for Table Report are eight attributes and shown in Table 3.7
below.
Table 3.7 Table SponsorNo Attributes Description Type Key Length Default Null1 total ‘total’ represent
sponsor ofstudent.
FLOAT PRIMARY
33
2 mCgpa ‘mCgpa’represent nameSPof student.
FLOAT
3 mKoko ‘mKoko’represent nameSPof student.
FLOAT
4 mPositionOrg
‘mPositionOrg’represent nameSPof student.
FLOAT
5 mfIncome ‘mfIncome’represent nameSPof student.
FLOAT
6 mmIncome
‘mmIncome’represent nameSPof student.
FLOAT
7 mNoDepenParent
‘mNoDepenParent’ representnameSP ofstudent.
FLOAT
8 studID ‘studID’ representnameSP ofstudent.
VARCHAR FOREIGN 20
3.9 Chapter Summary
Methodology helps to develop the system phase by phase and it is the main part of the
development of the system. In this project, Iterative and Incremental Development
Model had been chosen as the methodology of the system. Entity Relationship
Diagram, Context Diagram and Data Flow Diagram also showed in this chapter. The
framework is also included to give understanding how the system is work
34
CHAPTER 4
IMPLEMENTATION
4.1 Introduction
This chapter shows about the complexity of the algorithm that will use in the system.
Other than that, it also will show flow of the project system that will be used. System
implementation is how the information system should be built and ensure that the
information system is run well.
35
4.2 Solution Complexity
Formula of weighted sum method :-
j weighted sum = w1j1 +w2j2 + …. + wnjn Where ;
W= the weight, j= the values
Figure 4.1 : Tips Scale
Total weight = (pngk *pngkweight) + (koko * kokoweight) + (position *
positionweight) + (fatherIncome * fatherIncomeweight) + (motherIncome *
motherIncomeweight) + (noDepenParent * noDepenParenweight)
36
Example :-
- Student 1 : (4 x 0.1) + (5 x 0.12) + (4 x 0.9) + (4 x 0.1) + (4 x 0.1) + (3 x 0.6) = 7.2
- Student 2 : (1 x 0.1) + (3 x 0.12) + (2 x 0.9) + (1 x 0.1) + (1 x 0.1) + (1 x 0.6)= 3.06
From the result obtained, student 1 is the greatest value for the weight specified, thus
student 1 is an alternative that chosen as the best alternative to get a sponsorship field
[5][6][7].
4.3 Proof Of Concept
Proof of Concept is documented as evidence that SSS can be successful. Below are
shown, the design(screenshot) from the SSS.
4.3.1 Interface Before Login
Figure 4.2 : Login page
Figure above shows, login page for student, admin and sponsor. All the users need to
login to access the system by enter their number ID and password. If their number ID
or password are wrong, so the users can’t log in into the system. If their number ID
and password are correct, so they can access the system.
37
4.3.2 Student Interface
Figure 4.3 : Student Information
Figure 4.3 shows, student need to enter all the detail about their information. In this
section student are compulsory to fill in all the detail in the form to access to the next
page. When student click button add, and the data successfully added, so all the data
are saved into the database.
Figure 4.4 : Add Criteria Detail
38
Figure 4.4 shows interface for student add their criteria detail. Student need to fill in
all the criteria given by refer from the criteria and weightage.When student click add
button so all the data are save into the database.
Figure 4.5 : Sponsor Selection Detail
After student add all the data at Figure 4.5, so the next page are Figure 4.4 which is
interface for student to choose their sponsor. Student are needed to choose one sponsor
as their sponsorship if they are successful to get the sponsorship
Figure 4.6 : Report Student Detail
39
Figures 4.6 shows the interface of student report after the admin calculate their criteria
marks. In the report, will also appear all the total marks of student result and either the
student are pass or fail to get the sponsorship.
Figure 4.7 : Report Student with total marks according the courses
Figure 4.7 refer to the interface according to the student courses and student can
search their student ID by enter their student ID.
Figure 4.8 : Change Password
40
Figure 4.8 shows the interface of change password which is student, admin and
sponsor can use when they are login into their homepage. They are needed to enter the
new password and re-enter the new password. Pop-up will be displayed successfully
change password if the password are successful change.
4.3.3 Sponsor Interface
Figure 4.9 : Add Detail Profile
Figure 4.9 shows the interface of add profile detail of sponsor when the sponsor are
first time enter to their homepage. Sponsor are needed to enter their name and their
phone number. When click submit button and the appear pop-up successful, so the
data are save in the database.
41
Figure 4.10 : Report student with total marks
Figure 4.10 shows report of student that appear in the sponsor page interface. The
figure above shows the report of student according to sponsor name.
4.3.4. Admin Interface
Figure 4.11 : Add User
Figure 4.11 shows the interface for the admin to add all the user. The ID user are auto
generate and admin need to choose the user type and need to enter their password.
After the user login to their page, the user can change their password
42
Figure 4.12 : View User
After admin add the user, so admin can view all the user that the admin has
successfully added. And the view user interface are at Figure 4.12.
Figure 4.13 : List of calculate criteria
Figure 4.13 shows the list of criteria student that had been entered by the student.
Admin need to click the link calculate at the action to calculate all the criteria of the
student.
43
Figure 4.14 : Calculate Criteria Detail
Figure 4.14 shows the information of criteria for the one student. When the admin
click calculate and the action are successful, so will appear pop-up successful
calculate.
Figure 4.15 : Calculate criteria result per student
Figure 4.15 shows the result of the student criteria after calculation. The interface
will show the detail of student and their total mark. Admin need to click ‘Back to
Calculate Criteria to calculate other student criteria marks information.
44
4.16 Report List after Calculation
Figure 4.16 shows the report list of student detail with their total marks and remarks
either they are successful to get sponsorship or not.
4.17 : Report List of student
Figure 4.17 shows the list of student detail who have been enter their detail
information.
45
Figure 4.18 : Report List of sponsor
Figure 4.18 shows report of detail of all the sponsor that are sponsor in the Student
Sponsorship System in the admin page.
4.4 Chapter Summary
It can be concluded that, this system is more about how the implementation of the
phase into the project system. The proof of concept acts as a guideline of how the
system is work
46
CHAPTER 5
RESULT & TESTING
5.1 Introduction
This chapter is focused on the testing and result of the testing. The type of testing
analysis used in this system is black box testing. Each module will be test one by one
to test its functionality and this chapter is to make sure that the system conforms its
specification and meets its requirement.
47
5.2 Testing Analysis
5.2.1 Black Box Testing
Black Box Testing is also known as behavioral, specification based is a Software
Testing Method that analyses the functionality of software without knowing much
about the internal design of the item that is being tested which is it is compared the
input value with the output value. For example, in a black box testing on a software
design the tester only know about the input and the expecting result should be and
does not how the output of the program. The tester does not examine about the
programming code and does not need more knowledge about the program rather than
its specification.
5.2.2 Test Case
5.2.2.1 Test Case Login for User
Table 5.1 Test Case for Success LoginTest Case for Success Login
No Test Procedure Expected Result1. Go to main page View login page2. Enter following details :
ID : A0001Password : 123
3. Click login button Login page loaded and login successful.Admin will be redirect to Adminhomepage, student will be redirect toStudent homepage and sponsor will beredirect to Sponsor homepage.
5.2.2.2 Test Case Failed Login for User
Table 5.2 Test Case Failed Login for UserTest Case for Unsuccessful Login
No Test Procedure Expected Result1. Go to main page View login page
48
2. Enter following details :ID : A0001Password : 123
3. Click login button Login page loaded and login unsuccessful.All the roles (student, admin and sponsor)will redirect back login page.
5.2.2.3 Test Case for Add User
Table 5.3 Test Case for Add UserTest Case for Add User
No Test Procedure Expected Result1. Go to Admin Homepage View user page and click at Add User2. Enter following details :
ID : ST0001Position : studentPassword : 123
3. Click add button Data successfully added.
5.2.2.4 Test Case for Delete User
Table 5.4 Test Case for Delete UserTest Case for Delete User
No Test Procedure Expected Result1. Go to Admin Homepage View user page and click at View User2. Page loaded and view all list of user3. Click delete button in user list
Example:ID : ST0001
Data successfully deleted, user will beredirect to the view user page.
5.2.2.5 Test Case for Add Student Information
Table 5.5 Test Case for Add Student InformationTest Case for Add Student Information
No Test Procedure Expected Result1. Go to Student Homepage Click at Student Page2. Enter following details :
Number ID : ST0002Name : Nur binti AliIC Number : 961219145678Lot Number : 14Road Number : Jalan BudimanPoscode : 68000City : SelangorPhone Number : 0198234567E-Mail : [email protected] : Syariah IslamiyahFather Name : Ali bin AbuFather Occupation : Government
49
Father Phone Number :0197823453Mother Name : Hasnah bintiAhmadMother Occupation : GovernmentMother Phone Number :0192837456
3. Click add button to add thedetails, reset button to reset dataand cancel button to cancel thepage function.
All the data will be save at database andwill be redirected to Criteria Page
5.2.2.6 Test Case for Add Criteria Detail
Table 5.6 Test Case for Add Criteria DetailTest Case for Add Criteria Detail
No Test Procedure Expected Result1. Go to Student Homepage Click at Student Page2. Enter following details :
Number ID : ST0002PNGK : 60.00Co-Curriculum : 1Position Organization : 2Father’s Income : 1Mother’s Income : 1Number Dependent Parent : 3
3. Click add button to add thedetails, reset button to reset data.
All the data will be save at database andwill be redirected to Homepage Student
5.2.2.7 Test Case for Student’s Sponsor Detail
Table 5.7 Test Case for Student’s Sponsor DetailTest Case for Student’s Sponsor Detail
No Test Procedure Expected Result1. Go to Student Homepage Click at Student Page2. Enter following details :
Sponsor Name: Maybank
3. Click add button to add thedetails, reset button to reset data.
All the data will be save at database andwill be redirected to Homepage Student
5.2.2.8 Test Case for Calculate Criteria
Table 5.8 Test Case for Calculate CriteriaTest Case for Calculate Criteria
No Test Procedure Expected Result1. Go to Admin Homepage Click at Calculate Criteria Page2. Data from database by choose
Student ID :-Number ID : ST0002
50
PNGK : 60.00Co-Curriculum : 1Position Organization : 2Father’s Income : 1Mother’s Income : 1Number Dependent Parent : 3
3. Click add button to add thedetails, reset button to reset data.
All the data will be save at database andwill be redirected to Homepage Student
5.2.2.9 Test Case for View Report
Table 5.9 Test Case for View ReportTest Case for View Report
No Test Procedure Expected Result1. Go to Student Homepage Click at Report Page2. Search the Number ID and click
enter.Example:ST0001
Report page is loaded and the report willbe displayed
5.2.2.10 Test Case for View Report
Table 5.10 Test Case for View ReportTest Case for View Report
No Test Procedure Expected Result1. Go to Admin and Sponsor page Click at Report Page2. Report page is loaded and the report will
be displayed
5.2.2.11 Test Case for Logout
Table 5.11 Test Case for LogoutTest Case for Logout
No
Test Procedure Expected Result
1. Go to Current Page View current page2. Click LOGOUT on the rightmost
navigation bar.Process the page.
3. All user will end the session and will beredirected into main page.
51
5.3 Chapter Summary
This chapter is more focus about the testing of the system. The flow of the system is
important for the clear understanding of the system. During testing, the developer
check any error that occur in the system. If there is any error during testing, so it will
be corrected before giving to the user the complete system.
52
CHAPTER 6
DISSCUSSION AND CONCLUSION
6.1 Introduction
In this chapter, it contain system contribution, project limitation and future works.
System contribution discuss how well the system contribute to user of the system
while the project limitation discuss about all the difficulties that occur through the
development of the system. While, future works is any improvement that can be
applied to the system in the future.
53
6.2 System Contribution
Student Sponsorship System is a web-based system that can be use by STAM students,
sponsors and the admin. The major contribution of this system can be summarized as
follows :-
This system will help the student to get sponsorship by fill up form by online
rather than need to fill up the form manually.
The calculation of all the criteria easier through the system compare to the
manual system which is using this system will be more systematic because
calculate all the criteria by using Weighted Sum Method.
All the user will not worry about the safety of data because only selected user
that have their own id can access into the system.
6.3 Project Limitation
The project limitation of the project are :-
The criteria for the calculation is fixed and only its weightage can be manage.
If user are not registered by the admin, so the user can’t login to the system.
Do not have many choice of course available in this system because only
available course for STAM holder.
More time is needed to make this system completed functioned with perfect
calculation on added value.
54
6.4 Future Works
This section will discuss about any improvement that can be use in future of Student
Sponsorship System. The recommendation are as follows :-
The system need to be upgrade by allow the users to view more useful report
such as graph.
The system should make the system more general to all the course, not only
for STAM holder.
6.5 Chapter Summary
Student Sponsorship System has been developed to make improvement from the
manual form to the web based system. This system help all the user to get the result
more efficiently.
55
REFERENCES
[1] Mark Velasquez, Patrick T. Hester. 2013. An Analysis of
Multi-Criteria Decision Making Method.
[2] T.Jeevalatha, N.Ananthi, D.Sarava Kumar. 2014. Performance
Analysis of Undergraduates Students Placement Selection
[3] Shofwatul ‘Uyun, Iman Riadi. 2011. A Fuzzy Topsis Multiple
Attribute Decision Making for Scholarship Selection
[4] Nur Afriza Baki, Nur Idalisa Nordin, Wan Azrina Wan Azman.
2017. Application of Analytic Hierarchy Process for Selecting Best
Student.
[5] Suzani Mohamad Samuri, Hermaelisrani Abdul Ghani, Bahbibi
Rahmatullah, Nurul Syakilah Ab Aziz. 2016. Decision Support System for
Evaluating and Monitoring Teacher Performance.
[6] Shafiqur Rehman, Salman A.Khan.2017. Multi-Criteria Wind
Turbine Selection using Weighted Sum Approach
[7] Adriyendi. 2015. Multi-Attribute Decision Making Using Simple
Additive Weighted and Weighted Product in Food Choice
56
APPENDIXES
57
Form Criteria
<?php
include("config.php");
$studID = $_GET['studID'];
?>
<?php
$result = mysqli_query($con, "SELECT * FROM criteria WHERE
studID='$studID'" );
$i=1;
while($user_data = mysqli_fetch_array($result)){
//$id = $user_data['id'];
$studID = $user_data['studID'];
$cgpa = $user_data['cgpa'];
$koko = $user_data['koko'];
$positionOrg = $user_data['positionOrg'];
$fIncome = $user_data['fIncome'];
$mIncome = $user_data['mIncome'];
$noDepenParent = $user_data['noDepenParent'];
}
?>
<center><form name="calcCriteria1" method="post" action="calcCriteria2.php">
<table width="600" border="1">
<tr>
<td> Number ID</td>
<td><?php echo "$studID" ?><input type="hidden" name="studID"
size="30" value="<?php echo "$studID" ?>"></td>
</tr>
<tr>
<td> PNGK </td>
<td><?php echo "$cgpa" ?><input type="hidden" name="cgpa"
value="<?php echo "$cgpa" ?>">
</td>
58
</tr>
<tr>
<td>Co-Curriculum</td>
<td><?php echo "$koko" ?><input type="hidden"
name="koko"><input type="hidden" name="id" value="<?php echo "$koko" ?>">
</td>
</tr>
<tr>
<td>Position Organization</td>
<td><?php echo "$positionOrg" ?><input type="hidden"
name="positionOrg" value="<?php echo "$positionOrg" ?>">
</td>
</tr>
<tr>
<td>Father Income</td>
<td><?php echo "$fIncome" ?><input type="hidden"
name="fIncome"><input type="hidden" name="id" value="<?php echo
"$fIncome" ?>">
</td>
</tr>
<tr>
<td>Mother Income </td>
<td><?php echo "$mIncome" ?><input type="hidden"
name="mIncome" value="<?php echo "$mIncome" ?>">
</td>
</tr>
<tr>
<td>Number Dependent Parent</td>
<td><?php echo "$noDepenParent" ?><input type="hidden"
name="noDepenParent" size="30" value="<?php echo "$noDepenParent" ?>"></td>
</td>
</tr>
</table> <br><br>
59
<center><input type="submit" name="Submit" value="Calculate"
onClick="confirm('do you really want to update this data')" value="click">
<input type="reset" name="reset" value="Reset" ></center>
</form></center>
<?php
mysqli_close($con);
?>
Weighted Sum Method
<?php
include "config.php";
session_start();
$studID=$_POST['studID'];
$cgpa=$_POST['cgpa'];
$koko=$_POST['koko'];
$positionOrg=$_POST['positionOrg'];
$fIncome=$_POST['fIncome'];
$mIncome=$_POST['mIncome'];
$noDepenParent=$_POST['noDepenParent'];
$result = mysqli_query ($con, "SELECT * FROM criteria");
//$result = mysqli_query ($con, "UPDATE criteria SET studID ='$studID', cgpa
='$cgpa', koko ='$koko', positionOrg ='$positionOrg', fIncome ='$fIncome', mIncome
='$mIncome', noDepenParent ='$noDepenParent' WHERE cgpa='$cgpa'");
while($row=mysqli_fetch_array($result)){
$cgpaweight=$row['cgpa'];
$kokoweight=$row['koko'];
$positionOrgweight=$row['positionOrg'];
$fIncomeweight=$row['fIncome'];
$mIncomeweight=$row['mIncome'];
$noDepenParentweight=$row['noDepenParent'];
//$remarks=$row['remarks'];
60
//if($totalweight>35 "PASS","FAIL"){
//echo "PASS";
// }
//else{
// echo "FAIL";
}
$totalweight=($cgpa*$cgpaweight)+($koko*$kokoweight)+($positionOrg*$posit
ionOrgweight)+($fIncome*$fIncomeweight)+($mIncome*$mIncomeweight)+($noDe
penParent*$noDepenParentweight);
//if($row['cgpa'] != 0 && $row['koko'] != 0 && $row['positionOrg'] != 0 &&
$row['fIncome'] != 0 && $row['mIncome'] != 0 && $row['noDepenParent'] != 0){
//
$totalweight=($cgpa*$cgpaweight)+($koko*$kokoweight)+($positionOrg*$posit
ionOrgweight)+($fIncome*$fIncomeweight)+($mIncome*$mIncomeweight)+($noDe
penParent*$noDepenParentweight);
// $totalweight = round($totalweight);
// if($totalweight >= 2000){
// $query = mysqli_query($con,"'".$average."', remarks = 'Passed'
where studID = '".$studID."' ");
//}
//else{
//$query = mysqli_query($con,"'".$average."', remarks = 'Failed'
where studID = '".$studID."' ");
//}
//}
//else{
//$totalweight=($cgpa*$cgpaweight)+($koko*$kokoweight)+($positionOrg*$pos
itionOrgweight)+($fIncome*$fIncomeweight)+($mIncome*$mIncomeweight)+($noD
epenParent*$noDepenParentweight);
//$totalweight = round($totalweight);
//$query = mysqli_query($con,"'".$average."', remarks = 'No Final
Remarks' where studID = '".$studID."' ");
//}
61
$sql2="INSERT INTO report(mCgpa, mKoko, mPositionOrg, mfIncome, mmIncome,
mNoDepenParent, total, studID)
VALUES
('$cgpaweight','$kokoweight','$positionOrgweight','$fIncomeweight','$mIncomeweigh
t','$noDepenParentweight','$totalweight', '$studID')";
$result=mysqli_query($con,$sql2);
if($con->query($sql2)===TRUE) {
echo "<script> alert ('Data successfully added!');
document.location.href='calcCriteria3.php'</script>";
} else {
echo "Error" . $sql2 . "<br>" .$con ->error;
}
header("Location: calcCriteria3.php?studID=$studID");
mysqli_close($con);
?>
FORM DISPLAY RESULT
<?php
include "config.php";
$studID=$_GET['studID'];
?>
<center><table cellpadding="20" width="600" border="3">
<tr>
<th> NO </th>
<th> NUMBER ID </th>
<th> NAME </th>
<th> COURSE</th>
<th> TELEPHONE NUMBER </th>
<th> SPONSOR NAME </th>
<th> TOTAL MARK </th>
<th> ACTION </th>
62
</tr>
<tr>
<?php
$sql="SELECT * FROM report rp, student std, studsponsor sp
WHERE rp.studID='$studID' AND std.studID=rp.studID AND
sp.studID=std.studID";
$result=mysqli_query($con,$sql)
or die("Error: ".mysqli_error($con));
$i=1;
$status="";
while($row =mysqli_fetch_array($result)){
//$studID=$row[0];
echo "<tr>";
echo "<td>".$i."</td>";
echo "<td>".$row['studID']."</td>";
echo "<td>".$row['studName']."</td>";
echo "<td>".$row['course']."</td>";
echo "<td>".$row['studphoneNo']."</td>";
echo "<td>".$row['nameSP']."</td>";
echo "<td>".$row['total']."</td>";
echo "<td colspan='3'><a
href='calcCriteriaF.php'><center><b>Back to Calculate
Criteria</b></center></a></td>";
echo "</tr>";
$i++;
//echo "</table>";
}
?>
</tr></table>
</center>