SimpleStudy Schools Book a Demo We can give expert advice on our plans and what will be the best option for your school.
Parents Pricing Home NSC Information Technology Algorithm design 1.1 Add the picture, Medical.jpg, as a dynamic component when the program is executed
1.1 Add the picture, Medical.jpg, as a dynamic component when the program is executed - NSC Information Technology - Question 1 - 2017 - Paper 1 Question 1
View full question 1.1 Add the picture, Medical.jpg, as a dynamic component when the program is executed.
Properties:
Left = 500
Top = 15
Height = 90
Width = 120
Stretch = True
1.2 G... show full transcript
View marking scheme Worked Solution & Example Answer:1.1 Add the picture, Medical.jpg, as a dynamic component when the program is executed - NSC Information Technology - Question 1 - 2017 - Paper 1
1.1 Add the picture, Medical.jpg, as a dynamic component when the program is executed. Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
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.Picture.LoadFromFile('medical.jpg');
Imgmedical.Visible := True;
1.2 General Info Button: Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
To implement the General Info Button logic:
Get the title, name, and surname from the edit box.
Retrieve the ID number and check if it's 13 characters long. If it's not, display a suitable message.
Check if the ID contains only numbers. If it doesn't, display a warning message.
If valid, create a file name using the first three characters of the surname and a random number between 100 and 999.
Display a welcome message incorporating the title, initials, surname, and the generated file name.
1.3 Medical Aid Info Button: Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
The Medical Aid Info Button should work as follows:
Check if the Main Member checkbox is selected; if true, display 'Main Member'.
If the subsidy checkbox is selected, store 'Yes', otherwise store 'No'.
Get the number of dependents and the medical aid name from the list box.
Write the information to the text file using the file name created in Question 1.2. Make sure each piece of information is on a separate line:
<file name>: (Main Member)
<number of dependents>
<medical aid name>
<subsidy>
Close the file and display a message indicating that the information has been successfully written.
1.4 Update Info Button: Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
For the Update Info Button implementation:
Retrieve the current system date, their modification date, and increment it by one year.
Create the output message that informs the patient when they need to update their information again, utilizing the incremented date.
Display the message in an appropriate format.
Join the NSC students using SimpleStudy...97% of StudentsReport Improved Results
98% of StudentsRecommend to friends
100,000+ Students Supported
1 Million+ Questions answered
;© 2025 SimpleStudy. All rights reserved