Photo AI

VRAAG 1: ALGEMENE PROGRAMMERINGSVAARDIGHEDE 'n Voorbeeld van die GGK (GUI) word hieronder gegee: MedHealth Praktyk Voltooi die kode vir elke afdeling van VRAAG 1 soos dit beskryf word in VRAAG 1.1 tot VRAAG 1.4 - NSC Information Technology - Question 1 - 2017 - Paper 1

Question icon

Question 1

VRAAG-1:-ALGEMENE-PROGRAMMERINGSVAARDIGHEDE--'n-Voorbeeld-van-die-GGK-(GUI)-word-hieronder-gegee:--MedHealth-Praktyk--Voltooi-die-kode-vir-elke-afdeling-van-VRAAG-1-soos-dit-beskryf-word-in-VRAAG-1.1-tot-VRAAG-1.4-NSC Information Technology-Question 1-2017-Paper 1.png

VRAAG 1: ALGEMENE PROGRAMMERINGSVAARDIGHEDE 'n Voorbeeld van die GGK (GUI) word hieronder gegee: MedHealth Praktyk Voltooi die kode vir elke afdeling van VRAAG 1 ... show full transcript

Worked Solution & Example Answer:VRAAG 1: ALGEMENE PROGRAMMERINGSVAARDIGHEDE 'n Voorbeeld van die GGK (GUI) word hieronder gegee: MedHealth Praktyk Voltooi die kode vir elke afdeling van VRAAG 1 soos dit beskryf word in VRAAG 1.1 tot VRAAG 1.4 - NSC Information Technology - Question 1 - 2017 - Paper 1

Step 1

1.1 Wanere die program uitgevoer word, moet die prentjie, Medies.jpg, as 'n dinamiese komponent bygevoeg word.

96%

114 rated

Answer

To create a dynamic component in the program, the following code snippet should be added:

Imgmedical := TImage.create(frmQuestion1);
Imgmedical.parent := frmQuestion1;
Imgmedical.left := 500;
Imgmedical.top := 15;
Imgmedical.height := 90;
Imgmedical.width := 120;
Imgmedical.Stretch := True;
Imgmedical.picture.loadfromfile('medies.jpg');
Imgmedical.visible := true;

Step 2

1.2 Algemene Inligting Knoppie:

99%

104 rated

Answer

To implement the general information button, the following steps should be followed:

  1. Get the title from the combobox.
  2. Retrieve name and surname from the edit box.
  3. Check if the ID number has a length of 13 digits: If true:
    • Ensure it consists only of numbers.
    • Randomly generate a number between 100 and 999.
    • Extract the initial and surname from the provided names.
    • Create a file name using the first three characters of the surname followed by the random number.
  4. Display a welcome message showing the title, initial, surname, and file name.
  5. Include a message for cases when the ID length is not 13 digits.

Step 3

1.3 Mediese Fonds Inligting Knoppie:

96%

101 rated

Answer

For the medical funds information button, follow these steps:

  1. Check if the main member checkbox is selected.
  2. If the subsidy checkbox is selected, it should indicate 'Yes'. Otherwise, it should indicate 'No'.
  3. Get the number of dependents from the radio group.
  4. Get the medical aid name from the list box.
  5. Create a text file using the file name determined in Question 1.2:
    • Write the file name, number of dependents, medical aid name, and subsidy status to the file, ensuring each entry is on a new line.
  6. Display a message confirming that the file has been written.

Step 4

1.4 Opdatering Inligting Knoppie:

98%

120 rated

Answer

To implement the update information button, perform the following:

  1. Get the current system date.
  2. Extract the year from the date and increase it by one.
  3. Create the new date reflecting this increment.

Join the NSC students using SimpleStudy...

97% of Students

Report Improved Results

98% of Students

Recommend to friends

100,000+

Students Supported

1 Million+

Questions answered

;