# Information Technology Grade 11 P1 2017 Memo (Eng)

> Grade 11 Information Technology Paper 1 memorandum from the Eastern Cape November 2017 (English), 14 pages. Read online or download the free PDF.

- Page: https://www.hlayiso.com/library/it-p1-gr11-memo-nov2017-english/b034bd9c-795f-42bc-9b01-b7e73b6b0056
- Updated: 2026-09-27
- Subject: Information Technology
- Grade: Grade 11
- Language: English
- Document type: Memorandum
- Year: 2017
- Exam period: Eastern Cape November
- Paper: 1
- Curriculum: CAPS
- Pages: 14

Breadcrumbs: [Home](https://www.hlayiso.com/) › [Library](https://www.hlayiso.com/library) › [Grade 11](https://www.hlayiso.com/library/grade-11) › [Information Technology](https://www.hlayiso.com/library/grade-11/information-technology) › [Information Technology Grade 11 P1 2017 Memo (Eng)](https://www.hlayiso.com/library/it-p1-gr11-memo-nov2017-english/b034bd9c-795f-42bc-9b01-b7e73b6b0056)

## About this document

Information Technology · Grade 11 · Eastern Cape November · 2017 · English. Memorandum, 14 pages. Read online or download the PDF.

Read it free online on the page above; download the PDF from there.

## Matching paper and memo

- [IT P1 GR11 NOV 2017 English](https://www.hlayiso.com/library/it-p1-gr11-nov-2017-english/c1eacf3d-81b5-4fd9-94a9-20ba1d701848) — QP · 2017 · Eng

## Document text

Text extracted from the PDF. Layout, diagrams and tables may not survive extraction.

### Page 1

Downloaded from hlayiso.com

                          NATIONAL
                     SENIOR CERTIFICATE

                            GRADE 11

                        NOVEMBER 2017

               INFORMATION TECHNOLOGY P1
                   MARKING GUIDELINE

MARKS:   150

                  This marking guideline consists of 14 pages.

### Page 2

Downloaded from hlayiso.com
   2                                INFORMATION TECHNOLOGY P1             (EC/NOVEMBER 2017)

GENERAL PROGRAMMING SKILLS

                                                                          MAX.      MARKS
                               QUESTION 1
                                                                         MARKS     ACHIEVED
Get input from spinedits for adults,  children and pensioners

If VIP checkbox is selected
  get number of VIP tickets from spinedit

Allocation of ticket numbers: (8)

Initialising of variables
VIP tickets start at 1
Other tickets start at 31
Correct allocation of ticket numbers – start  and end
Calculation of total VIP tickets 
Calculation of total other tickets
Calculation of total tickets for all purchases made 

Calculation of the cost: (4)

Ticket costs per category – adults * 80 and (children+pensioners *
50) 
Calculating total cost per purchase
Calculating total cost for all purchases made
                                                                          32
Display: (5)

Heading: SCHOOL PRODUCTION and on next line Show:GALA
NIGHT
Cost of tickets formatted to currency and two decimal places
The ticket numbers that are allocated to this purchase

Write to File: (6)

Assignfile
Rewrite
Write total amount of tickets to file
Write total amount of money to file, formatted to two decimal places
Closefile

Clear button: (4)

Clear the richedit
Set the spinedits to 0
Set the checkbox to uncheck

                                                                          [32]

   Copyright reserved                                                      Please turn over

### Page 3

Downloaded from hlayiso.com
(EC/NOVEMBER 2017)               INFORMATION TECHNOLOGY P1                                 3

                                                               MAXIMUM         MARKS
                           QUESTION 2
                                                                MARKS         ACHIEVED
  2.1    Class scope variable declarations:
          icount
          arrnames,arrsurnames,arrscene[1..100] 
          string

         Test if file exists
           Message to display that the file does not exist
           Close program
         Assignfile 
         Reset file
                                                                 22
         Initialise the counter
         Loop 
           Increase the counter
           Read line from text file
           Find position of space
           Get the name and store in array
           Find position of ‘-‘
           Get the surname and store in array
           Store the scene in array
         Close the file
  2.2    Method heading
         Outer loop (icount – 1) 
           Inner loop (k+1) 
             Compare arrsurnames
              3 lines to swop arrnames
              3 lines to swop arrsurnames                        9
              3 lines to swop arrscene

         * the first array that is swopped will be awarded 3
         marks because the next two make use of the same
         logic – must make use of a temporary variable
  2.3    Call the Sort method
         Loop – making use of counter variable
                                                                  4
           Displaying the surnames in uppercase and the
           names
  2.4    Initialise counters
         Loop
           Any method to determine if S1 is present
             Increase counter                                    8
           Any method to determine if S2 is present
             Increase counter
         Display how many people in S1 and in S2
  2.5    Call the Sort method
         Loop
           If Technical or Backstage                            6
             Display arrname ‘ ‘ arrsurname ‘–‘ arrscene

                                                                 [49]

Copyright reserved                                                      Please turn over

### Page 4

Downloaded from hlayiso.com
4                              INFORMATION TECHNOLOGY P1                     (EC/NOVEMBER 2017)

                                                                        MAX          MARKS
                            QUESTION 3
                                                                       MARKS        ACHIEVED
    3.1   ValidId

          Method heading: id as parameter and Boolean return
          type
          Initialise counters
          Get the numbers in odd positions and add them
          Get the numbers in even positions, multiply by 2
          and put numbers together
                                                                        17
          Add all the numbers (even) 
          Add odd and even
          Get the last digit
          Subtract last digit from 10
          If answer is the same as the last digit in ID
            Return true
          else
            Return false
    3.2   Gender

          Method heading: Id as parameter return type char
          If 7th position of ID less than or equal to 4                7
            Return ‘F’
          else
            Return ‘M’
    3.3   RegCode

          Procedure with sname as parameter
          Initialise variables: icount := 0; k := 1; scode := ‘’ 
          Conditional loop
            Change name to uppercase
                                                                        17
            If letter not a vowel or space
              Add to code
              Increase counter (icount) 
            Increase counter (k) 
          Randomise a number correct range  (100-999)
          Display code, # and random number
    3.4   Get the id
          Get the name
          Get the gender
          If the ID is valid and gender from ID = gender from
                                                                         8
          input
            Call Regcode
          else
            Display a message that information is not correct
                                                                        [49]

Copyright reserved                                                             Please turn over

### Page 5

Downloaded from hlayiso.com
(EC/NOVEMBER 2017)                INFORMATION TECHNOLOGY P1                                   5

                                                                         MAX        MARKS
                            QUESTION 4
                                                                        MARKS      ACHIEVED
  4.1      Sort according surname ASC, name ASC                         2
  4.2      NO FILTERS!

           Get the name and surname from inputbox
           Extract the name
           Extract the surname
                                                                          9
           Open the table and set to first record
           Loop through table
            If name  and surname is found
              Display the contact number
            Go to next record
  4.3      Any method may be used. If a filter was used, the filtered
           property should be set to false in the next question.
                                                                          2
           Using the word LIKE
           %Cast Welfare%
  4.4      Any method may be used
           Using recordcount or a counter                                2
           Displaying how many records
  4.5      Insert
           Add the name
           Add the surname                                               5
           Add the contact number
           Post
                                                                         [20]

                                                            TOTAL:       150

Copyright reserved                                                         Please turn over

### Page 6

Downloaded from hlayiso.com
6                                INFORMATION TECHNOLOGY P1            (EC/NOVEMBER 2017)

SAMPLE SOLUTIONS

Question 1

unit Question1_u;

interface

uses
 Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
 Dialogs, StdCtrls, ComCtrls, ExtCtrls, Spin, Math, Buttons;

type
  TForm1 = class(TForm)
   sedadults: TSpinEdit;
   sedchildren: TSpinEdit;
   redoutput: TRichEdit;
   lbladults: TLabel;
   Label1: TLabel;
   Button1: TButton;
   cbxVip: TCheckBox;
   Label2: TLabel;
   sedpens: TSpinEdit;
   BitBtn1: TBitBtn;
   procedure Button1Click(Sender: TObject);
   procedure FormCreate(Sender: TObject);
   procedure BitBtn1Click(Sender: TObject);
  private
   { Private declarations }
  public
   { Public declarations }
  end;

var
 Form1: TForm1;
 itotalvip, itotalother, itotaltickets : integer;
 rtotalcost : real;

implementation

{$R *.dfm}

procedure TForm1.BitBtn1Click(Sender: TObject);
begin
 redoutput.clear;
 sedadults.Value := 0;
 sedchildren.Value := 0;
 sedpens.Value := 0;
 cbxVip.Checked := false;
end;

Copyright reserved                                                     Please turn over

### Page 7

Downloaded from hlayiso.com
(EC/NOVEMBER 2017)                  INFORMATION TECHNOLOGY P1                                     7

procedure TForm1.Button1Click(Sender: TObject);
var
 iadults, ichildren, ipens, ivip, istartseat, iendseat : integer;
 rcost : real;
 myfile : textfile;

begin
 ivip := 0;
 iadults := sedadults.Value;
 ipens := sedpens.value;
 ichildren := sedchildren.Value;

 istartseat := itotalother;
 iendseat := istartseat + iadults + ipens + ichildren -1;

 if cbxvip.Checked = true then
  begin
   ivip := strtoint(Inputbox('','How many VIPs?',''));
   istartseat := itotalvip;
   iendseat := istartseat + ivip-1;
  end;
 itotalvip := itotalvip + ivip;
 itotalother := itotalother + iadults + ipens + ichildren;

 rcost := iadults * 80 + (ipens + ichildren) * 50;
 rtotalcost := rtotalcost + rcost;
 itotaltickets := itotaltickets + ivip + iadults + ichildren + ipens;

 redoutput.Lines.Add('School Production');
 redoutput.Lines.Add('Show: GALA NIGHT');
 redoutput.lines.add('Total cost of tickets:'+#9+floattostrf(rcost,ffcurrency,10,2));
 redoutput.Lines.Add('Seats: '+inttostr(istartseat) + '-'+inttostr(iendseat));

 Assignfile(myfile,'Bookings.txt');
 Rewrite(myfile);
 writeln(myfile,'Tickets sold: '+inttostr(itotaltickets));
 writeln(myfile,'Total amount '+floattostrf(rtotalcost,fffixed,6,2));
 closefile(myfile);
 showmessage('File was successfully written');

end;

procedure TForm1.FormCreate(Sender: TObject);
begin
 itotalvip := 1;
 itotalother := 31;
 rtotalcost := 0;
 itotaltickets := 0;
end;

end.

Copyright reserved                                                             Please turn over

### Page 8

Downloaded from hlayiso.com
8                            INFORMATION TECHNOLOGY P1                 (EC/NOVEMBER 2017)
Question 2

unit Question2_u;

interface

uses
 Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;

type
  TForm1 = class(TForm)
   Button1: TButton;
   Memo1: TMemo;
   Button2: TButton;
   Button3: TButton;
   procedure FormCreate(Sender: TObject);
   procedure Button1Click(Sender: TObject);
   procedure Button2Click(Sender: TObject);
   procedure Button3Click(Sender: TObject);
  private
   { Private declarations }
  public
   procedure Sort;
  end;

var
 Form1: TForm1;
 arrnames, arrsurnames, arrscene : array[1..100] of string;
 icount : integer;
implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
var
 k : integer;
begin
  Sort;
  for k := 1 to icount do
    memo1.Lines.Add(uppercase (arrsurnames[k]) + ' ' + arrnames[k]);
end;
procedure TForm1.Sort;
var
 k: Integer;
 l: Integer;
 stemp1, stemp2,stemp3 : string;

begin
  for k := 1 to icount - 1 do
   for l := k+1 to icount do
     if arrsurnames[k] > arrsurnames[l] then
     begin

Copyright reserved                                                      Please turn over

### Page 9

Downloaded from hlayiso.com
(EC/NOVEMBER 2017)                 INFORMATION TECHNOLOGY P1                                    9
      stemp1 := arrnames[k];
      arrnames[k] := arrnames[l];
      arrnames[l] := stemp1;
      stemp2 := arrsurnames[k];
      arrsurnames[k] := arrsurnames[l];
      arrsurnames[l] := stemp2;
      stemp3 := arrscene[k];
      arrscene[k] := arrscene[l];
      arrscene[l] := stemp3;
     end;
end;
procedure TForm1.Button2Click(Sender: TObject);
var
 k, ipos, iscene1, iscene2 : integer;
begin
 memo1.Clear;
 iscene1 := 0;
 iscene2 := 0;
 for k := 1 to icount do
 begin
   ipos := pos('S1',arrscene[k]);
   if ipos > 0 then
      inc(iscene1);

  ipos := pos('S2',arrscene[k]);
  if ipos > 0 then
      inc(iscene2);

  end;
  memo1.Lines.Add('Total Scene 1: ' + inttostr(iscene1));
  memo1.Lines.Add('Total Scene 2: ' + inttostr(iscene2));
end;

procedure TForm1.Button3Click(Sender: TObject);
var
 k : integer;
begin
 memo1.Clear;
 Sort;
 for k := 1 to icount do
 begin
   if (arrscene[k] = 'Technical') or (arrscene[k] = 'Backstage') then
     memo1.Lines.Add(arrnames[k] + ' '+arrsurnames[k] + '-' + arrscene[k])
 end;
end;

procedure TForm1.FormCreate(Sender: TObject);
var
 myfile : textfile;
 soneline : string;
 ipos : integer;
begin
   if fileexists('Cast.txt') <> true then

Copyright reserved                                                           Please turn over

### Page 10

Downloaded from hlayiso.com
10                           INFORMATION TECHNOLOGY P1   (EC/NOVEMBER 2017)
 begin
   Showmessage('File does not exist');
   Exit;
 end;
 Assignfile(myfile, 'Cast.txt');
 Reset(myfile);
 icount := 0;
 while not eof (myfile) do
 begin
   icount := icount + 1;
   readln(myfile,soneline);
   ipos := pos(' ',soneline);
   arrnames[icount] := copy(soneline, 1, ipos-1);
   delete(soneline,1,ipos);
   ipos := pos('-',soneline);
   arrsurnames[icount] := copy(soneline, 1, ipos-1);
   delete(soneline,1,ipos);
   arrscene[icount] := soneline;
 end;
 closefile(myfile);
end;

end.

Copyright reserved                                        Please turn over

### Page 11

Downloaded from hlayiso.com
(EC/NOVEMBER 2017)              INFORMATION TECHNOLOGY P1                            11
Question 3

unit Question3_u;

interface

uses
 Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
 Dialogs, StdCtrls, Math;

type
  TForm1 = class(TForm)
   Button1: TButton;
   Edit1: TEdit;
   Edit2: TEdit;
   Edit3: TEdit;
   procedure Button1Click(Sender: TObject);
  private
   { Private declarations }
  public
   function validid(sid : string) : boolean;
   function gender(sid : string) : char;
   Procedure RegCode(sname : string);
  end;

var
 Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
var
 sid, sname, sgender : string;
begin
 sid := edit1.text;
 sname := edit2.text;
 sgender := edit3.text;
 if (validid(sid)) and (gender(sid)= sgender) then
   regcode(sname)
 else
   Showmessage('Information is not correct');
end;

procedure TForm1.RegCode (sname: string);
var
 icount, k, iran : integer;
 scode : string;
begin
 icount := 0;
 k := 1;
 scode := '';

Copyright reserved                                                     Please turn over

### Page 12

Downloaded from hlayiso.com
12                                 INFORMATION TECHNOLOGY P1     (EC/NOVEMBER 2017)
 while icount <> 4 do
 begin
   if NOT(upcase (sname[k]) in ['A','E','I','O','U',' ']) then
   begin
     scode := scode + sname[k];
     inc(icount);
   end;
   inc(k);
 end;
 iran := randomrange(1,1000);
 Showmessage(scode+'#'+inttostr(iran) );
end;

function TForm1.gender(sid: string): char;
begin
  if strtoint(sid[7] ) <= 4 then
    result := 'F'
  else
    result := 'M';
end;

function TForm1.validid(sid: string): boolean;
var
  k, iodd, ieven, isum, icheck, ilast: Integer;
  seven : string;
begin
   seven := '';
   ieven := 0; initialise counters
   iodd := 0;
   for k := 1 to 12 do
   begin
     if k mod 2 = 0 then
       seven := seven + inttostr(strtoint(sid[k])*2)
     else
       iodd := iodd + strtoint(sid[k]);
   end;
   for k := 1 to length(seven) do
     ieven := ieven + strtoint(seven[k]);

     isum := iodd + ieven;
     ilast := strtoint(inttostr(isum)[2]);

  icheck := 10 - ilast;

  if icheck = strtoint(sid[13]) then
    result := true
  else
    result := false;

end;

end.

Copyright reserved                                                Please turn over

### Page 13

Downloaded from hlayiso.com
(EC/NOVEMBER 2017)               INFORMATION TECHNOLOGY P1                           13
Question 4

unit Question4_u;

interface

uses
 Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
 Dialogs, Menus, Grids, DBGrids, DB, ADODB;

type
  TForm1 = class(TForm)
   ADOTable1: TADOTable;
   DataSource1: TDataSource;
   DBGrid1: TDBGrid;
   MainMenu1: TMainMenu;
   Sort1: TMenuItem;
   FindaContactNumber1: TMenuItem;
   CastWelfare1: TMenuItem;
   AllHelpers1: TMenuItem;
   Remove1: TMenuItem;
   procedure Sort1Click(Sender: TObject);
   procedure FindaContactNumber1Click(Sender: TObject);
   procedure CastWelfare1Click(Sender: TObject);
   procedure AllHelpers1Click(Sender: TObject);
   procedure Add1Click(Sender: TObject);
  private
   { Private declarations }
  public
   { Public declarations }
  end;

var
 Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.AllHelpers1Click(Sender: TObject);
begin
 Showmessage(inttostr(adotable1.RecordCount));
end;

procedure TForm1.CastWelfare1Click(Sender: TObject);
begin
 adotable1.Filter := 'Tasks LIKE ''%'+'Cast Welfare'+'%''';
 ADOTable1.Filtered := True;
end;

procedure TForm1.FindaContactNumber1Click(Sender: TObject);
var
 sname, ssurname, ssearch : string;

Copyright reserved                                                     Please turn over

### Page 14

Downloaded from hlayiso.com
14                         INFORMATION TECHNOLOGY P1                  (EC/NOVEMBER 2017)
 ipos : integer;
begin
 ssearch := inputbox('','','');
 ipos := pos(' ',ssearch);
 sname := copy(ssearch, 1, ipos-1);
 delete(ssearch,1,ipos);
 ssurname := ssearch;
 adotable1.Open;
 adotable1.first;
 while not adotable1.eof do
 begin
   if (adotable1['Name'] = sname) and (adotable1['Surname'] = ssurname) then
     Showmessage('Contact Number is '+adotable1['ContactNumber']);
 adotable1.Next;
 end;
 adotable1.Close;
end;

procedure TForm1.Add1Click(Sender: TObject);
begin
  adotable1.Insert;
  adotable1['Name'] := 'Paige';
  adotable1['Surname'] := 'Watson';
  adotable1['ContactNumber'] := '0832454216';
  adotable1.Post;
end;

procedure TForm1.Sort1Click(Sender: TObject);
begin
 adotable1.Sort := 'Surname ASC, Name ASC';
end;

end.

Copyright reserved                                                     Please turn over

## Related documents

- [IT P2 GR11 MEMO NOV2017 English](https://www.hlayiso.com/library/it-p2-gr11-memo-nov2017-english/88e40d93-af83-4029-9187-7738dc1b7687) — Information Technology · Memo · 2017 · Eng
- [IT P2 GR11 QP NOV2017 English](https://www.hlayiso.com/library/it-p2-gr11-qp-nov2017-english/9b4f5e1e-271a-450e-8110-ffd9c5dde32a) — Information Technology · QP · 2017 · Eng
- [IT P1 QP GR11 NOV2020 English D](https://www.hlayiso.com/library/it-p1-qp-gr11-nov2020-english-d/7b2666c6-ba4e-471a-b82d-0e9cc054a7f3) — Information Technology · QP · 2020 · Eng
- [IT P1 QP GR11 NOV2020 English](https://www.hlayiso.com/library/it-p1-qp-gr11-nov2020-english/f76e86f9-8bcb-424c-afaf-00ec85aa21a0) — Information Technology · QP · 2020 · Eng
- [IT JUNE-P1-and-MEMO-1](https://www.hlayiso.com/library/it-june-p1-and-memo-1/0b17b8f6-fad4-47c1-bfc5-ce9d5b3c1302) — Information Technology · Memo · 2017
- [IT P1 MEMO GR11 NOV2019 Afr D](https://www.hlayiso.com/library/it-p1-memo-gr11-nov2019-afr-d/ef724526-4c79-4aa9-8628-6b081260a040) — Information Technology · Memo · 2019 · Afr

## More from Grade 11 Information Technology

- [Gr 11 Info Tech ATP 2023-24](https://www.hlayiso.com/library/gr-11-info-tech-atp-2023-24/67fc595c-646e-4c38-9951-fe5fe3a113a7) — ATP
- [IT P1 QP GR11 NOV 2022 AFR](https://www.hlayiso.com/library/it-p1-qp-gr11-nov-2022-afr/e4251ebe-2f65-4c6f-992b-f7208b36300a) — QP · 2022 · Afr
- [IT P1 QP GR11 NOV 2022 English](https://www.hlayiso.com/library/it-p1-qp-gr11-nov-2022-english/3db564bd-1d04-48ab-aedd-fae2d9f9939f) — QP · 2022 · Eng
- [IT P2 GR11 QP NOV2022 English](https://www.hlayiso.com/library/it-p2-gr11-qp-nov2022-english/1c12dccc-2a5b-4b41-a80c-5bd8b30f6151) — QP · 2022 · Eng
- [IT P1 QP GR11 NOV 2022 English](https://www.hlayiso.com/library/grade-11-information-technology-2022-exemplar-november-exam-question-paper-paper-1-english/c2d16637-c6bc-43d6-b469-cb62712d9eb0) — QP · 2022 · Eng
- [IT P2 GR11 QP NOV2022 English](https://www.hlayiso.com/library/grade-11-information-technology-2022-exemplar-november-exam-question-paper-paper-2-english/b3f6c643-27fc-4fd5-baa3-b8c49c4b6f61) — QP · 2022 · Eng

## Collection

- [Grade 11 past papers](https://www.hlayiso.com/grade-11/past-papers)

---

Hlayiso: free CAPS and IEB past papers, memos, notes and study guides for South African learners. When citing, link the page URL above, not a PDF or /api/ URL.
