Monday, 3 September 2012

Gr 10 Cycle Test Thursday 6 September 2012

Work on which test will be based:
Module 2.2 Basic Concepts of Hardwae
Module 2.3 Basic Concepts of System Software.
Module 2.4 Computer Management.


Things that should be done:

All activities in respect of these chapters should be completed by highlighting the answers and crossreferencing answers and question. Also pay attention to all glossary tables.

The test will consist as before of a question paper that has to filled out.

Monday, 4 June 2012

How South African ID numbers work and the problem of data capturing.


South African ID numbers are issued in the following way: An example is 890902 5012 083.
The first six digits indicate the persons date of birth in the format  YYMMDD. In the above example the person was born on 2 September 1989.
The next four digits (5012) indicate a persons gender. Values from 0001 – 4999 indicate that the person is female and the values from 5000 – 9999 indicate that the person is male. In this case the value 5012 indicates that the person is male and was the 12th person to be registered at the South African Department of Home Affairs for the person date 2 September
The  remaining digits (083) work as follows:
The ‘0’ indicates the persons citizen status. A '0' indicates the person is a local resident.  A '1' indicates the person is a foreigner with permanent working permit. A '2' indicates the person is a refugee.
The next digit ‘8’ in this example has no meaning. The values for this ‘meaningless digit’ is either 8 or 9.
The last digit ‘3’ in our example serves a very special purpose. It is called a check digit.  The purpose of this digit is to help ensure that data capturing clerks at institutions like banks, SARS and so on do not make a mistake when they have to enter a persons ID number into their computers.
The check is done as follows:
Click on the image to see enlarged view:


If the products of the digits add up to a number perfectly divisible by 10 (there is no remainder) then the ID number was captured correctly. In this example the products of the digits calculated in manner explained adds up to 50 which can be divided by 10 with no remainder.

Students in all the grades (10 - 12) all  have enough programming structures to create a program to see if an ID number is correctly entered.

The above method of checking was first done by the IBM engineer Luhn in 1954.
See:   http://en.wikipedia.org/wiki/Luhn_algorithm

Gr10 Exam groups

The people in Group A will first go to the computer center to do practical part of the exam from 7h50 to 8h00. This part of the group the following:

1 Tambay, Waseem [0345]   A_Group
2 Brand, Tristan [0324]         A_Group
3 Samaemo, Robinson [0453]   A_Group
4 Chetty, Brenton [0396]   A_Group
5 Hassan, Zarina [0581]    A_Group
6 Harmer, Gabriel [0736]   A_Group
7 Mokagane, Daphne [0423]   A_Group
8 Prakasim, Kimberley [0410]   A_Group
9 Leckram, Nirvadh [0365]   A_Group
10 Jadhu, Navalya [5385]    A_Group
11 Williams, Amina [0441]   A_Group
12 vander Struis, Kristen  A_Group

The people in Group B will first go to room 106 where they will do the the theory part of the exam from 7h50 to 8h00. This part of the group the following:

13 Harris-Lane, Kyle [0412]   B_Group
14 Lemao, Dominique [0470]   B_Group
15 Zondi, Lulama [0462]    B_Group
16 Field, Daniel [0398]    B_Group
17 Mupungila, David [0455]   B_Group
18 Govender, Sachin [5373]   B_Group
19 Spence, Jordan [0310]    B_Group
20 Seedat, Mohamed Irfan [0413]   B_Group
21 Misiani, Allen [0414]    B_Group
22 Prinsloo, Kieran [0307]   B_Group
25 Crowie, Dylan [0421]   B_Group

Friday, 25 May 2012

Tuesday, 22 May 2012

Gr10 Homewwork Practical for 24 May

Do Exercises 6,7 and 8 on page62.
Also read section on if-else

Gr10 Practical Exam Scope

Note this exam is also on Friday 8 June 2012 from 08h00 to 10h15.
Topics to study includes .
Module 1.2:  pp25 -  42. Introduction to Graphical Programming.
Module 1.3:  pp43 - 58.  Input Processing and Output.
Module 1.4:  pp59 - 65  Decision Making.
Check all the exercises that were done during terms1 -2.

Monday, 21 May 2012

Gr10 June Exam Scope (Theory)

The work to study for the theory paper on 8th June 2012 8h00 - 10h30

1.Module 1.1 pp8 - 24.
2. Overview of Scratch Program pp26-27.
3. Repetition Actions pp32 - top 34.
4. Variables pp44 - 45.
5. Decision Making pp59 - 61
6. Section2 pp105 - 127.
Also pay attention to creating algorithms and pseudo code
when given a problem.

Friday, 18 May 2012

The following code will test to see if a number is divisible by three:











{$R *.dfm}
var
  iNumber: Integer;
  bTest:Boolean;
function DivideByThree(iNumber:Integer):Boolean ;
var
  sNumber:string;
  i,iSum: Byte;
begin
  DivideByThree:=False;
  iSum:=0;
  sNumber    := IntToStr(iNumber);
  for i := 1 to Length(sNumber) do
     iSum := iSum + StrToInt(sNumber[i]);
   if (iSum mod 3 = 0) then
      DivideByThree := True;
end// end DivideByThree
procedure TForm1.btnTestClick(Sender: TObject);
begin
   iNumber := StrToInt(edtNumber.Text);
   if DivideByThree(iNumber) then
       ShowMessage('Divisible Byte three')
   else
       ShowMessage('Not Divisible Byte three')
end;
end.