INFORMATION TECHNOLOGY
PAPER ONE (P1)
GRADE 12
EXAM PAPERS AND MEMOS
SEPTEMBER 2016
INSTRUCTIONS AND INFORMATION
QUESTION 1
Question1_p.dpr
Question1_u.pas
Question1_u.dfm
QUESTION 2
clsLearners.pas
Question2_p.dpr
Question2_u.pas
Question2_u.dfm
QUESTION 3
examnumbers.txt
Question3_p.dpr
Question3_u.pas
Question3_u.dfm
SECTION A
QUESTION 1: GENERAL PROGRAMMING SKILLS
All Grade Twelve learners have to check their examination entry for the National Exam at the end of each year. Subject changes are allowed, but all supporting documents must be submitted. All information that is entered, must be correct. |
INSTRUCTIONS:
|
1.1 Question 1.1 Button
The learner must enter his/her name and surname in the given text area. The relevant grade must be selected. The old and new subject must also be selected. If the old and new subject is the same, display an ‘Incorrect Information’ message. If no subject change is made, display the learner’s details and ‘No subject change’. If a subject change has been made, display the learner’s information as well as a message indicating that all required documents should be submitted.
Example of output:
INCORRECT INFORMATION: NO SUBJECT CHANGE:
SUBJECT CHANGE:
(13)
Question 1.2 Button
The ID number must be validated by comparing it with the date of birth. Display a suitable message to indicate whether it is correct or incorrect.
Example of output: (8)
1.3 Question 1.3 Button
A username needs to be created. It is generated by removing all the vowels and spaces from the candidate’s name and surname (as entered in Question 1.1); ‘%’; a random number between 100 and 300 (inclusive) and ‘#’.
Example of output (Take note: The output will be different due to random numbers): (11)
1.4 Question 1.4 Button
Code must be written to calculate whether the candidate has achieved a pass based on the marks they have entered.
Requirements for a pass are as follows:
Example of output:
1.5 (15)
|
TOTAL SECTION A: 47
SECTION B
QUESTION 2: OBJECT-ORIENTED PROGRAMMING
To get admission to tertiary institutions one must achieve a certain amount of Admission Points depending on the course and institution. |
INSTRUCTIONS:
|
2.1
2.1.1 Declare an array with class scope which will store the candidate’s marks (maximum 10 subjects). The private attributes are given; declare the public methods as you answer the questions below. (7)
2.1.2 Write code for the constructor method which will receive and assign the candidate’s name and number of subjects. The attribute fapspoints must be initialised. (3)
2.1.3 Write a method called APS which will receive the marks from the array, convert it to the respective level and then calculate the APS points. APS points are calculated by converting the percentages to the respective levels and adding the levels together.
Percentage Level
80-100 7
70-79 6
60-69 5
50-59 4
40-49 3
30-39 2
0-29 1 (4)
2.1.4 Write a method called BachPass which will receive the marks and return whether the learner has achieved a bachelor’s pass.
In order to qualify for a bachelor pass, the learner must achieve at least 50% in four subjects. Assume that all the subjects are from the designated list of subjects. (8)
2.1.5 Write a method called CompileString which will return the information as shown in the following format:
Learner’s Name: <fname>
Bachelor Pass: <Yes/No>
APS Points: <fapspoints> (3)
2.2 The learner’s name must be entered in the text area; then the number of subjects that the learner is enrolled for must be entered using an InputBox component.
If the learner entered less than 7 subjects, then the learner must enter the number of subjects again until it is 7 subjects or more.
The learner must enter the marks and these marks must be stored in an array. Once the marks are entered, then the program must check whether the learner qualifies for a bachelor pass. If the learner has a bachelor pass, then APS must be calculated. All the information must be displayed as shown in the example below. All relevant methods must be called.
If the learner does not qualify for a bachelor pass, a suitable message must be displayed. (17)
Example of output:
|
TOTAL SECTION B: 42
SECTION C
QUESTION 3: PROBLEM SOLVING PROGRAMMING
A record of all the exam numbers and centres must be kept accurately for statistical purposes. Sometimes new candidates are added and some are deregistered for various reasons. It is also important to know how many candidates each centre has. |
INSTRUCTIONS:
|
You are required to design a program that must be able to do the following:
Read the following sections before attempting the solution:
NOTE:
GUI AND DATA SUPPLIED
GUI
The GUI contains components for input and output. Additional components will be required. At least one dynamic component must be used.
Example of GUI provided:
DATA
The exam centre number forms part of the candidate’s exam number. If the candidate’s exam number is 4151610060031, then it can be interpreted as follows:
The exam centres are stored in a one-dimensional array called arrcentres.
The examnumbers of the candidates are stored in a textfile named examnumbers.txt.
PROGRAM REQUIREMENTS
Get Information, Sort and Display
Search for centre number
Add exam centre and exam number
Delete an exam number
Sometimes candidates are deregistered due to various reasons.
MARK ALLOCATION
REQUIREMENTS | MAXIMUM MARKS |
Modular Design, Dynamic Component, Indentation | 5 |
Get Information, Sort and Display | 18 |
Search | 15 |
Add | 10 |
Delete | 13 |
|
TOTAL SECTION C: 61
GRAND TOTAL: 150