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.
Skip to contentAll 2017 papers 





View all





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.
Information Technology · Grade 11 · Eastern Cape November · 2017 · English. Memorandum, 14 pages. Read online or download the PDF.
- Subject
- Information Technology
- Grade
- Grade 11
- Language
- English
- Document type
- Memorandum
- Year
- 2017
- Exam period
- Eastern Cape November
- Paper
- 1
- Curriculum
- CAPS
- Pages
- 14
- File size
- 760.1 KB
Free to read online, no sign-up needed
Loading document…
Loading document…
1 of 14
This exam
Eastern Cape November 2017
Questions in this paper
Document textSearch extracted text and jump to a page.
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
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
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
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
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
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
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
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
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
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
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
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
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
Study this subject
Recommended for this subject

Memorandum
Information Technology Grade 11 P2 2017 Memo (Eng)

Question paper
Information Technology Grade 11 P2 2017 QP (Eng)

Question paper
Information Technology Grade 11 P1 2020 QP (Eng)

Question paper
Information Technology Grade 11 P1 2020 QP (Eng)

Memorandum
Information Technology Grade 11 P1 2017 Memo

Memorandum
Information Technology Grade 11 P1 2019 Memo (Afr)
More from Grade 11 Information Technology

Annual teaching plan
Gr 11 Info Tech ATP 2023 24

Question paper
Information Technology Grade 11 P1 2022 QP (Afr)

Question paper
Information Technology Grade 11 P1 2022 QP (Eng)

Question paper
Information Technology Grade 11 P2 2022 QP (Eng)

Question paper
Information Technology Grade 11 P1 Exemplar November 2022 QP

Question paper