NATIONAL SENIOR CERTIFICATE GRADE 12

Similar documents
(Please text me on once you have submitted your request online and the cell number you used)

Rate Lock Policy. Contents

Extended G/L Segment Codes

Creating and Linking Charge Objects

Record of Revisions to Patient Tracking Spreadsheet Template

Making Medicare + Medi-Cal Work for California s Dual Eligibles

Medicare Quarterly Update Instructions

EMC believes the information in this publication is accurate as of its publication date. The information is subject to change without notice.

2017 PEPFAR Data and Systems Applied Learning Summit Day 2: MER Analytics/Available Visualizations, Clinical Cascade Breakout Session TB/HIV EXERCISE

How to Get Set Up and Running with NDepend

Year 10 Food Technology. Assessment Task 1: Foods for Special Needs. Name: Teacher:

DATA RELEASE: UPDATED PRELIMINARY ANALYSIS ON 2016 HEALTH & LIFESTYLE SURVEY ELECTRONIC CIGARETTE QUESTIONS

Coding. Training Guide

Effective date: 15 th January 2017 Review date: 1 st May 2017

Daily Balancing in Maestro

2016 CWA Political Action Fund Administrative Procedures Checklist

Properties detailed info There are a few properties in Make Barcode to set for the output of your choice.

Action plan: serialisation of Nordic packages focus on Product Codes

EMEA DICOMBurner solution EMEA DICOMBurner solution

Indirect Sales. Proof Policy. Indirect Channel. Version May Author: Credit Risk & Fraud. External version

Execu/Suite QuickBooks Interface

NHAIS SIS Communication

Benefits for Anesthesia Services for the CSHCN Services Program to Change Effective for dates of service on or after July 1, 2008, benefit criteria


Lee County Florida Income Guideline Chart

Dental Benefits. Under the TeamstersCare Plan, you and your eligible dependents have three basic options when you need dental care.

ACMPR - Access to Cannabis for Medical Purposes Regulations Part 1 Commercial Production

HSC 106 Personal Health Plan for Learning Activities & Assessment linked to Michigan Teacher Preparation Standards

SUFFOLK COUNTY COUNCIL. Anti- Social Behaviour Act Penalty Notice. Code of conduct

Dear Student, IMMUNIZATION RECORD INSTRUCTIONS

MGPR Training Courses Guide

The Cannabis Act and Regulations

Lesson Unit content* Activities Resource checklist Links to other units

IMMIGRATION Canada. Temporary Resident Visa. Los Angeles and New York City Visa Office Instructions. Table of Contents IMM 5876 E ( )

P02-03 CALA Program Description Proficiency Testing Policy for Accreditation Revision 1.9 July 26, 2017

Assessment Field Activity Collaborative Assessment, Planning, and Support: Safety and Risk in Teams

Lower Extremity Amputation (LEA) Considerations / Issues

Fee Schedule - Home Health Care- 2015

University College Hospital. Pump school Starting on an insulin pump. Children and Young People s Diabetes Service

INSTRUCTIONS FOR AUTHORISATION DEVICE DIGIPASS 320 OPERATION

National Imaging Associates, Inc. (NIA) Frequently Asked Questions (FAQ s) For PA Health & Wellness Providers

If, then. Homework: Finish entire guided notes packet. Name: Pod: Date: Which variable does a scientist manipulate or control in an experiment?

Appendix C. Master of Public Health. Practicum Guidelines

InformationNOW Attendance

Annual Principal Investigator Worksheet About Local Context

2017 CMS Web Interface

TABLE OF CONTENTS Glossary of terms Code Pad Diagram 3. Understanding the Code Pad lights.4.

Humanities and Social Sciences Division. o Work Experience, General. o Open Entry/Exit. Distance (Hybrid Online) for online supported courses

A pre-conference should include the following: an introduction, a discussion based on the review of lesson materials, and a summary of next steps.

LTCH QUALITY REPORTING PROGRAM

Statement of Work for Linked Data Consulting Services

Structured Assessment using Multiple Patient. Scenarios (StAMPS) Exam Information

Comprehensive Leave Manager

National Imaging Associates, Inc. (NIA) Frequently Asked Questions (FAQs) For Managed Health Services (MHS)

Solaire Medical Electronic Lock Software

Who is eligible for LifeCare? What services are available?

Physical Fitness for the Physically Limited. o Work Experience, General. o Open Entry/Exit. Distance (Hybrid Online) for online supported courses

Catherine Worthingham Fellows of APTA Instructions for Writing a Letter of Support

OPS Measurement Period Report

This standard operating procedure applies to stop smoking services provided by North 51.

2. What is SO 2? 3. The World Health Organization states that air pollution.

PROCEDURAL SAFEGUARDS NOTICE PARENTAL RIGHTS FOR PRIVATE SCHOOL SPECIAL EDUCATION STUDENTS

PET FORM Planning and Evaluation Tracking ( Assessment Period)

VOLUNTEER MOVE/CHANGE PROCESS. Volunteer Action Form is used to complete the following: To change companies or join a second company:

National Imaging Associates, Inc. (NIA) Frequently Asked Questions (FAQs) For Louisiana Healthcare Connections Providers

HaD to Py Users Manual. What Does HaD to Py Do? What Does HaD to Py Need? Author: Lily Ann Tomkovic

FDA Dietary Supplement cgmp

CALVIN JOHNSON JR. FOUNDATION 2015 PANCREATIC CANCER RESEARCH SCHOLARSHIP

WU-Minn HCP 900 Subjects Data Release: Reference Manual

CSE 331, Spring 2000

SCALES NW HEARING PROTECTION PROGRAM

HIS Registry of Ministry Resources

ABIOpure TM Total RNA (version 2.0)

Getting Started. Learning Guide. with Continuous Glucose Monitoring for the MiniMed 530G with Enlite. CGM Foundations

2018 Medical Association Poster Symposium Guidelines

Memory Screening Site s PROGRAM HANDBOOK

World Confederation for Physical Therapy Congress , May Singapore

FOLLOW-UP IN-DEPTH INTERVIEW GUIDELINES

23/11/2015. Introduction & Aims. Methods. Methods. Survey response. Patient Survey (baseline)

Vaccine Information Statement: PNEUMOCOCCAL CONJUGATE VACCINE

Cardiac Rehabilitation Services

VITAPRO. Detoxification properties of Apple pectin formulation, PROPECTIN. CENTRE D ETUDE ET DE VALORISATION DES ALGUES FINAL REPORT.

Success Criteria: Extend your thinking:

Huon Logistics Isolation & Lockout Work Instruction 1. LOCKOUT DEVICES 2. LIGHT VEHICLE POSITIVE ISOLATION POINTS - 1 -

Agency Address Verification Monitoring Report - BENO

Programme of Learning. Physical Education. Key Stage 4 Year 10 BTEC Sport

2017 CMS Web Interface

Tax information for the FMCG sector. February 2018 version

Post Distribution Monitoring Report

CONSENT FOR KYBELLA INJECTABLE FAT REDUCTION

Aeries Student Information System CALPADS End of Year Submissions May 4, 2012

QP Energy Services LLC Hearing Conservation Program HSE Manual Section 7 Effective Date: 5/30/15 Revision #:

Cognitive Processing for Interpreters. Humanities and Social Sciences Division. o Work Experience, General. o Open Entry/Exit

Thank you for your interest in Pratt Community. College s Electrical Power Technology Program at. Coffeyville. Enclosed you will find a packet which

Frequently Asked Questions: IS RT-Q-PCR Testing

A Phase I Study of CEP-701 in Patients with Refractory Neuroblastoma NANT (01-03) A New Approaches to Neuroblastoma Therapy (NANT) treatment protocol.

Building Code 101 OWMC November 20, Ministry of Municipal Affairs and Housing

o Work Experience, General o Open Entry/Exit Distance (Hybrid Online) for online supported courses

CSHCN Services Program Benefits to Change for Outpatient Behavioral Health Services Information posted November 10, 2009

Medical Student Immunization Requirements

Transcription:

NATIONAL SENIOR CERTIFICATE GRADE 12 INFORMATION TECHNOLOGY P1 FEBRUARY/MARCH 2015 MARKS: 150 TIME: 3 hurs This questin paper cnsists f 19 pages.

Infrmatin Technlgy/P1 2 DBE/Feb. Mar. 2015 INSTRUCTIONS AND INFORMATION 1. This questin paper is divided int THREE sectins. Candidates must answer ALL THREE sectins. 2. The duratin f this examinatin is three hurs. Because f the nature f this examinatin it is imprtant t nte that yu will nt be permitted t leave the examinatin rm befre the end f the examinatin sessin. 3. This paper is set in prgramming terms that are nt specific t any particular prgramming language (Delphi/Java (using the Netbeans IDE)). 4. Make sure that yu answer the questins accrding t the specificatins that are given in each questin. Marks will nly be awarded accrding t the set requirements. 5. Answer nly what is asked in each questin. Fr example, if the questin des nt ask fr data validatin, then n marks will be awarded fr data validatin. 6. Yur prgrams must be cded in such a way that they will wrk with any data and nt just the sample data supplied r any data extracts that appear in the questin paper. 7. Rutines such as search, srt and selectin must be develped frm first principles. Yu may nt use the built-in features f a prgramming language fr any f these rutines. 8. All data structures must be defined by yu, the prgrammer. Yu may nt use cmpnents prvided within the interface t stre and later retrieve data. 9. Yu must save yur wrk regularly n the disk yu have been given, r the disk space allcated t yu fr this examinatin. 10. Make sure that yur examinatin number appears as a cmment in every prgram that yu cde as well as n every event indicated. 11. If required, print the prgramming cde f all the prgrams/classes that yu cmpleted. Yu will be given half an hur printing time after the examinatin sessin. 12. At the end f this examinatin sessin, yu must hand in a disk/cd/dvd/flash disk with all yur wrk saved n it OR yu must make sure that all yur wrk has been saved n the disk space allcated t yu fr this examinatin sessin. Ensure that all files can be read.

Infrmatin Technlgy/P1 3 DBE/Feb. Mar. 2015 13. The files yu need t cmplete this questin paper have been given t yu n a disk/cd/dvd/flash disk r n the disk space allcated t yu in the frm f a passwrd-prtected executable file: Delphi learners must use the file DelphiDataENG.exe. Java learners must use the file JavaDataENG.exe. D the fllwing: Duble click n the file. Click n the extract buttn. Enter the fllwing passwrd: PrperTies87&% Once the file has been extracted, the fllwing list f files will be available in the flder DelphiDataENG/JavaDataENG: Delphi files Questin1: Questin1_P.dpr Questin1_P.res Questin1_U.dfm Questin1_U.pas Questin2: Abdul Bruwer.txt HmeLan_U.pas Paula Redhat.txt Questin2_P.dpr Questin2_P.res Questin2_U.dfm Questin2_U.pas Xavier Outland.txt Questin3: Questin3_P.dpr Questin3_P.res Questin3_U.dfm Questin3_U.pas Java (Netbeans) files Questin1: metre1.png Questin1.frm Questin1.java Questin2: Abdul Bruwer.txt Paula Redhat.txt Xavier Outland.txt HmeLan.java Questin2.frm Questin2.java Questin3: PpulateArrays.java Questin3.frm Questin3.java

Infrmatin Technlgy/P1 4 DBE/Feb. Mar. 2015 SCENARIO Yu are emplyed as a sftware develper at a cmpany that buys, renvates and sells prperties. SECTION A QUESTION 1: GENERAL PROGRAMMING SKILLS INSTRUCTIONS: Delphi prgrammers The prject Questin1 is prvided in the Delphi flder. Open the incmplete prject file Questin1_P.dpr in the Questin1 flder. Add yur examinatin number as a cmment in the first line f the main frm unit Questin1_U.pas. Java prgrammers The prject Questin1 is prvided in the Netbeans flder. Open the incmplete class called Questin1.java in the flders Surce Packages (src) and Questin1Package. Add yur examinatin number as a cmment in the first line f the class Questin1.java. D the fllwing: Cmpile and execute the prgram. The interface displays three different tabs, namely Advertisement, Living rm renvatin and Water and electricity. Example f the tab sheets: Cmplete the cde fr each tab as described in QUESTION 1.1 t QUESTION 1.3. NOTE: QUESTION 1.1 refers t the tab Advertisement. QUESTION 1.2 refers t the tab Living rm renvatin. QUESTION 1.3 refers t the tab Water and electricity.

Infrmatin Technlgy/P1 5 DBE/Feb. Mar. 2015 1.1 Interface fr the Advertisement tab NOTE: The market value f a prperty is the municipal value that the prperty is assessed fr. The selling price f a prperty is the value f the sale f the prperty. [Buttn Generate advertisement] Write cde t d the fllwing: Use infrmatin frm the prvided text bxes t cmpile an advertisement in the fllwing frmat: Huse fr sale: <selling price>#<number f bedrms>bed#<number f bathrms>bath# Use the fllwing infrmatin t cmpile the advertisement: The selling price cntained in the advertisement must be frmatted t a currency. D nt display any decimal values. If the Pl check bx is selected, the text 'Pl#' must be added t the advertisement text. If the selling price f the prperty is less than the market value, the wrd 'Bargain' must be added t the advertisement text.

Infrmatin Technlgy/P1 6 DBE/Feb. Mar. 2015 Display the advertisement infrmatin in the utput area prvided. Examples f cmpiled advertisements: Example 1: If the market value f the prperty is R950 000, the selling price is R850 000 and the huse has three bedrms, tw bathrms and a pl, the advertisement shuld be displayed as fllws: Example 2: If the market value f the prperty is R750 000, the selling price is R800 000 and the huse has tw bedrms, ne bathrm and n pl, the advertisement shuld be displayed as fllws: (11) 1.2 Interface fr the Living rm renvatin tab Write cde t d the fllwing: 1.2.1 [Radi Buttn Painting] If the radi buttn Painting is selected, use a variable t save the selected type f renvatin as the character P. (1)

Infrmatin Technlgy/P1 7 DBE/Feb. Mar. 2015 1.2.2 [Radi Buttn Tiling] If the radi buttn Tiling is selected, use a variable t save the selected type f renvatin ptin as the character T. (1) 1.2.3 [Buttn Calculate and display renvatin cst] The user is required t enter the number f square metres t be renvated as an integer value and select the type f renvatin t be dne. The cst f each type f renvatin must be calculated as explained belw. (a) If the type f renvatin is Painting, use the fllwing infrmatin t calculate hw much paint will be required as well as the ttal cst: One litre f paint is used t paint an area f eight square metres. The pricing structure f paint per drum is as fllws: 1-litre drum R 55.50 2-litre drum R 92.30 5-litre drum R 199.00 Display the calculated values in the prvided utput area using the fllwing frmat: Area: <area> square metres Vlume f paint required: <vlume> litre 1-litre drums: 2-litre drums: 5-litre drums: <number f 1-litre drums> <number f 2-litre drums> <number f 5-litre drums> Ttal cst: <Ttal cst f paint> The ttal cst must be displayed runded t tw decimal places. Example: If the area entered is 148 m 2, the utput will be as fllws: Area: 148 square metres Vlume f paint required: 18.5 litres 1-litre drums: 0 2-litre drums: 2 5-litre drums: 3 Ttal cst: R 781.60 (17)

Infrmatin Technlgy/P1 8 DBE/Feb. Mar. 2015 (b) If the type f renvatin is Tiling, a dialg bx must be used t allw the user t enter the cst f tiling per square metre. Add five square metres t the riginal square metre value that was entered t prvide fr breakages, and then calculate the cst. Display the area t be tiled in square metres. The ttal cst must be displayed runded t tw decimal places. Example: If the area entered is 100 m 2 and the cst f tiling is R50,00 per square metre, the fllwing will be displayed: 1.3 Interface fr the Water and electricity tab Area: 100 square metres Ttal cst: R 5250.00 (6) Write cde t d the fllwing: 1.3.1 [Buttn Calculate amunt due] The previus reading fr electricity used is supplied in a text bx as an integer. The user must enter the current reading in a text bx as an integer. If the current reading entered by the user is less than the previus reading, display a suitable message and clear the current reading text bx.

Infrmatin Technlgy/P1 9 DBE/Feb. Mar. 2015 If the current reading is equal t r greater than the previus reading, use the fllwing tariffs t calculate the amunt due fr electricity used: Units Tariffs 0 600 R1,00 per unit >600 R600 + R1,50 per unit fr all units that exceed 600 Display the amunt in the label prvided in a frmat that includes a currency crrect tw decimal places. Example: (11) 1.3.2 [Buttn List geysers] In an effrt t save electricity, slar geysers are investigated as a pssibility. Three sizes f slar geysers are available based n their capacity in litres. The user is required t enter ne f the three sizes: 50 (litres), 100 (litres) r 150 (litres). An array that cntains strings f text which each describes a type f geyser is prvided as part f the supplied cde. The descriptin f each type f geyser starts with the capacity f the geyser in litres, fllwed by a dash and the brand name f the geyser. Example: The geyser described as '50-Small Wnder' can hld 50 litres f water and the brand name f the geyser is 'Small Wnder'. Write cde t display the types f geysers in the array that matches the capacity entered by the user when the List geysers buttn is clicked. N validatin f the input value is required.

Infrmatin Technlgy/P1 10 DBE/Feb. Mar. 2015 Example: List f geysers when the value 50 is entered: (6) Ensure that yur examinatin number is entered as a cmment in the first line f the prgram file. Save yur prgram. A printut f the cde may be required. TOTAL SECTION A: 53

Infrmatin Technlgy/P1 11 DBE/Feb. Mar. 2015 SECTION B QUESTION 2: OBJECT-ORIENTATED PROGRAMMING Clients wh want t buy prperties usually apply fr hme lans. The fllwing infrmatin abut submitted applicatins are usually required: Des the applicant qualify fr a hme lan? What is the status f the applicatin based n the duratin f the lan in years and the interest rate? What is the instalment amunt t be paid each mnth? INSTRUCTIONS: Delphi prgrammers The prject Questin2 is prvided in the Delphi flder which cntains: Java prgrammers The prject Questin2 is prvided in the Netbeans flder which cntains: A main frm file called Questin2_U.pas An incmplete unit file called HmeLan_U.pas A text file fr each applicant A GUI class file called Questin2.java An incmplete bject class called HmeLan.java A text file fr each applicant Open the incmplete prject file called Questin2_P.dpr in the Questin2 flder. View (Ctrl+F12) the unit file HmeLan_U.pas and add yur examinatin number as a cmment in the first line f bth unit files Questin2_U.pas and HmeLan_U.pas. Open the incmplete file called Questin2.java and HmeLan.java in the flders Surce Packages (src) and Questin2Package. Add yur examinatin number as a cmment in the first line f the classes Questin2.java and HmeLan.java. D the fllwing: Cmpile and execute the prgram. Currently the prgram has n functinality. Example f the interface (see next page):

Infrmatin Technlgy/P1 12 DBE/Feb. Mar. 2015 Cmplete the cde as described in QUESTION 2.1 and QUESTION 2.2 t add functinality t the prgram. 2.1 Cmplete the cde in the hme lan class THmeLan/HmeLan as described belw. 2.1.1 Write cde t add the fllwing five attributes t the class: Descriptin Names f attributes Delphi Java Name f applicant fapplicantname applicantname Dispsable incme fdispsableincme dispsableincme Hme lan amunt applied fr flanamunt lanamunt Number f years t repay the hme lan fyears years Interest rate finterestrate interestrate (4) 2.1.2 Write cde t create a cnstructr which receives the fllwing parameter values: name f applicant dispsable incme lan amunt applied fr Initialise the relevant attributes using the parameter values. Initialise the attributes fr the number f years and the interest rate t 0. (5)

Infrmatin Technlgy/P1 13 DBE/Feb. Mar. 2015 2.1.3 Write an accessr methd fr the name f the applicant. (2) 2.1.4 Write mutatr methds fr the attributes Years and Interest rate. (4) 2.1.5 A methd called calculateinstalmentamunt has been prvided. Uncmment the cde that calculates the mnthly instalments in rder t make the methd functinal. (1) 2.1.6 Write cde fr a methd called isapprved t return a Blean value indicating whether the hme lan has been apprved r nt. A hme lan will nly be apprved if the fllwing criteria are met: Lans f mre than R800 000 must be repaid ver a perid f mre than 20 years (25 r 30 years). The mnthly dispsable incme f an applicant wh applies fr a lan up t R600 000 must be at least 130% f the mnthly instalments. (9) 2.1.7 Write cde t create a tstring methd t return a string frmatted as fllws: Name f applicant: <applicant name> Dispsable incme: <dispsable incme> Lan amunt: <lan amunt> Number f years: <number f years> Interest rate: <interest rate> % (5) 2.2 Yu have been prvided with three text files which each cntains infrmatin abut a different hme lan applicatin. The name f each text file is the name f the applicant. Example: If the applicant's name is 'Abdul Bruwer', the name f the text file is Abdul Bruwer.txt. Each text file cntains fur lines f infrmatin abut a hme lan applicant in the fllwing frmat: <name and surname f applicant> <mnthly incme> <mnthly expenditure> <hme lan amunt applied fr> Cntent f the three text files fr each f the fllwing applicants: Abdul Bruwer, Paula Redhat and Xavier Outland Abdul Bruwer 28000 12500 750000 Paula Redhat 25785 11190 888000 Xavier Outland 44741 20384 978000

Infrmatin Technlgy/P1 14 DBE/Feb. Mar. 2015 The GUI is supplied with the names f different applicants stred in the cmb bx that is prvided. An bject f the THmeLan/HmeLan class has been declared glbally. 2.2.1 [Buttn Find applicant] The user is required t select the name f an applicant frm the cmb bx. Write cde t d the fllwing: Test whether an applicant was selected r nt and display a suitable message. Test whether a text file with the applicant's name exists r nt, and display a suitable message which includes the applicant's name, and whether an applicatin was submitted r nt. If a text file is nt fund fr the applicant selected frm the cmb bx, n hme lan applicatin was submitted. Example f utput f a hme lan applicatin by Jhn Smith that was nt submitted: N hme lan applicatin was submitted by Jhn Smith. If a hme lan applicatin was nt submitted, disable the 'Evaluate applicatin' buttn. If a text file with the applicant's name exists (was submitted), d the fllwing: - Read the incme, expenditure and lan amunt frm the text file. - Calculate the dispsable incme by subtracting the expenses frm the incme. - Instantiate a THmeLan/HmeLan bject fr the applicant. - Enable the buttn 'Evaluate applicatin'. (18) 2.2.2 [Buttn Evaluate applicatin] The user must select the number f years fr the lan t be repaid frm the cmb bx prvided and enter the interest rate in the text bx prvided fr this purpse. Write cde t d the fllwing: Use the mutatr methds and the infrmatin prvided by the user t update the applicable attributes f the hme lan bject fr the applicant.

Infrmatin Technlgy/P1 15 DBE/Feb. Mar. 2015 Test whether the lan was apprved (adhered t the requirements) r nt. If the lan was apprved, display the details f the lan applicatin in the utput area using the tstring methd. Display a message with the fllwing frmat: Lan APPROVED with a mnthly instalment f <mnthly instalment> Example f utput fr the apprved hme lan applicatin by Abdul Bruwer fr R750 000 ver 20 years at an interest rate f 9%: Name f applicant: Abdul Bruwer Dispsable incme: R 15500.00 Lan amunt: R 750000.00 Number f years: 20 Interest rate: 9.0% Lan APPROVED with a mnthly instalment f R 6847.00 If the hme lan was nt apprved, display the applicant's name and surname and a message indicating that the lan was nt apprved. Example f utput fr the hme lan applicatin by Xavier Outland fr R870 000 ver 20 years at an interest rate f 9%, which was nt apprved: Name f applicant: Xavier Outland Lan NOT APPROVED (12) Ensure that yur examinatin number is entered as a cmment in the first line f the class and the frm. Save all the files. A printut f the cde in bth classes/units may be required. TOTAL SECTION B: 60

Infrmatin Technlgy/P1 16 DBE/Feb. Mar. 2015 SECTION C QUESTION 3: PROBLEM-SOLVING PROGRAMMING Six estate agents are emplyed at a lcal estate agency. The manager f the agency requires sftware that is able t evaluate the prfiles f their sales agents annually. INSTRUCTIONS: Delphi prgrammers The prject Questin3 is prvided in the Delphi flder. Open the incmplete prject file Questin3_P.dpr in the Questin3 flder. Add yur examinatin number as a cmment in the first line f the main frm unit file Questin3_U.pas. Java prgrammers The prject Questin3 is prvided in the Netbeans flder. Open the incmplete classes called Questin3.java and PpulateArrays.java in the flders Surce Packages (src) and Questin3Package. Add yur examinatin number as a cmment in the first line f the class file Questin3.java. D the fllwing: Cmpile and execute the prgram. Currently the prgram has n functinality. Example f interface:

Infrmatin Technlgy/P1 17 DBE/Feb. Mar. 2015 Tw arrays called arragents and arrsales are supplied. Yu may create and use additinal arrays as part f yur slutin. The array arragents stres the cdes and names f a number f sales agents in the fllwing frmat: <Agent's cde>:<agent's name> Example: A120:Wes Seelig NOTE: The infrmatin f sales agents with agent's cdes A120 A125 is supplied. The array arrsales stres infrmatin abut sld prperties in the fllwing frmat: <mnth>#<type>#<agent's cde>;<price> Descriptin f infrmatin prvided in ne line f text: mnth: The number f the mnth f the year in which the sale transactin was cnducted type: The type f prperty sld: - C: Cmmercial - R: Residential - A: Agricultural agent's cde: The cde f the agent wh sld the prperty price: The price at which the prperty was sld Example: 02#C#A123;650000 Cmplete the cde fr QUESTION 3 as described in QUESTION 3.1 and QUESTION 3.2 belw. 3.1 [Buttn Find agent's name] The user is required t enter the cde fr an agent in the text bx prvided. Write cde that will search the arragents array fr the cde f the agent that was entered by the user. The search prcess shuld be cnstructed in such a way that the search prcess stps when the agent's cde is fund. If the agent's cde is fund, display the agent's name in the label prvided fr the name f the agent. If the agent's cde is nt fund, display the message 'Invalid agent's cde' in the label which is prvided fr the name f the agent and clear the text bx prvided fr entering the agent's cde.

Infrmatin Technlgy/P1 18 DBE/Feb. Mar. 2015 Example f utput if the agent's cde entered is A123: Example f utput if the agent's cde entered is B123: (11) 3.2 [Buttn Agent's sales] 3.2.1 Add a suitable utput cmpnent in the Display area n the GUI t prvide fr the utput fr QUESTION 3.2.2. Rename the cmpnent with an apprpriate name. (2) 3.2.2 A summary f the sales cnducted by the sales agent identified in QUESTION 3.1 must be displayed in the cmpnent added in the GUI in QUESTION 3.2.1. Use the infrmatin in the arrsales array and summarise the sales f the agent as shwn belw. Example f utput if the agent's cde is A123: NOTE: The values displayed in the last clumn indicate the ttal number f the different types f prperties sld by this agent.

Infrmatin Technlgy/P1 19 DBE/Feb. Mar. 2015 The ttal value f sales displayed belw the summary indicates the ttal value f all prperties sld by this agent. Any ther suitable utput cmpnent may be used ther than the ne used in the given example. (24) Ensure that yur examinatin number is entered as a cmment in the first line f the prgram file. Save yur prgram. A printut f the cde may be required. TOTAL SECTION C: 37 GRAND TOTAL: 150