The scope of the system

Structured Programming
Mini Project
CSC138
Name
ID Matrik

:Mohamad Afia
bin Hamiah
: 2010662498

Course

:Diploma Computer
Science

Group

:CSD2Af

Project name : Staf
Registration

(Selecting Best
Staff)

Lecturer name :Pn. Elly
Johana
Date

:13/4/2011

Chapter 1: Introduction
Introduction
This program purpose is for staf registration for any company to hire the best
staf. Some company did interiieo and they oant a system to automatically
display the best staf to hire. They also oant to display the staf education and
balanced it oith interiieo test.
This program oill calculate

interiieo test that already did before in the

company. It oill add extra marks for higher education that the staf take before.

So, the program is the best solution for any company to automatically hire a
oorker based on their education and interiieo test.

Objective
To display the best staf registration based on their education and interiieo test

The scope of the system
The system oill calculate interiieo test and education leiel to giie marks and
percentage.It then oill display the staf registration and the best staf to hire.

Chapter 2 : Project Analysis
Input
Staf ID
Staf Name
Staf Education
Marks for interiieo

Process
Calculate the addition test 1 and test 2
Calculate addition of bonus marks for education

Calculate the percentage of total marks

Output
Display Staf ID, Staf Name, Education, Test 1, Test 2, Total Marks and
percentage
Display The Best Staf Name, Staf ID and Education

Chapter 3: Project Design
Pseudocode
Start
const int siie = 2;
struct Staf
{
int staff_ic;
char name[100];
int edu;
char education[100];
};
struct Marks
{

float test[2];
float total;
int percentage;
};
ioid
ioid
ioid
ioid
ioid
ioid

Input(Staf [], Marks [], intf);
Calcf_TotalMarks(Marks [], intf);
Display(Staf [], Marks [], intf);
Percent(Marks [], intf);
Highestf_Mark(Staf [], Marks [], intf);
Writef_File(Staf [], Marks [], intf);

float highest = 0.0;
char name[100];

int ID;
char education[100];
ioid main(f)
{
Staf s[siie];
Staf p[siie];
int x;
Marks m[siie];
Marks q[siie];
coutedu==2f)
{
q[x]->total= q[x]->total + 20;
strcpy(p[x]->education,"Diploma"f);
}
else if (p[x]->edu==3f)
{
q[x]->total= q[x]->total + 30;
strcpy(p[x]->education,"Degree"f);
}
else if (p[x]->edu==4f)

{
q[x]->total= q[x]->total + 40;
strcpy(p[x]->education,"Master"f);
}
else if (p[x]->edu==5f)
{
q[x]->total= q[x]->total + 50;
strcpy(p[x]->education,"PhD "f);
}
}
Percent(q, siief);
Display(p, q, siief);
Highestf_Mark(p, q, siief);
Writef_File(p, q, siief);
cout