Photo AI

VRAAG 1: ALGEMENE PROGRAMMERINGSVAARDIGHEDE 'n Voorbeeld van die GGK (GUI) word hieronder gegee: 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:--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: Voltooi die kode vir elke afdeling van VRAAG 1 soos dit beskryf wor... show full transcript

Worked Solution & Example Answer:VRAAG 1: ALGEMENE PROGRAMMERINGSVAARDIGHEDE 'n Voorbeeld van die GGK (GUI) word hieronder gegee: 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 Wanneer die program uitgevoer word, moet die prentjie, Medies.jpg, as 'n dinamiese komponent bygevoeg word.

96%

114 rated

Answer

To add the dynamic component, use the following code:

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

Step 2

1.2 Algemene Inligting Knoppie:

99%

104 rated

Answer

  1. Retrieve the title from the combobox and the name and surname from the edit box.
  2. Check if the ID's length is 13 digits. If it is:
    • Validate that all characters are numbers.
    • Generate a random integer between 100 and 999 inclusive.
    • Extract the initial and surname.
    • Compile the file name using the first three characters of the surname followed by the random number.
    • Display a welcome message along with the title, initial, surname, and file name.
  3. If the ID's length is not 13 digits, display an error message.

Step 3

1.3 Mediese Fonds Inligting Knoppie:

96%

101 rated

Answer

  1. Check if the Main Member checkbox is selected.
  2. If the Subsidy checkbox is selected, the subsidy must be marked 'Yes'. Otherwise, it should be 'No'.
  3. Retrieve the number of dependents from the radio group and the medical aid name from the listbox.
  4. Write this information to a text file that was assigned in Question 1.2, ensuring each entry is on a new line.

Step 4

1.4 Opdateer Inligting Knoppie:

98%

120 rated

Answer

  1. Get the current system date.
  2. Extract the year from the date and increase it by one year to create the new date.
  3. Ensure to format the new date correctly.

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

;