The local school's district office requires a record of schools in the district and a report on the results of the schools to determine the amount of funding that each school will receive - NSC Information Technology - Question 3 - 2023 - Paper 1
Question 3
The local school's district office requires a record of schools in the district and a report on the results of the schools to determine the amount of funding that ea... show full transcript
Worked Solution & Example Answer:The local school's district office requires a record of schools in the district and a report on the results of the schools to determine the amount of funding that each school will receive - NSC Information Technology - Question 3 - 2023 - Paper 1
Step 1
3.1.1 Constructor Create
96%
114 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
To create the constructor, initialize the attributes by defining the parameters with appropriate types:
Sign up now to view full answer, or log in if you already have an account!
Answer
Determine whether the school is public or private and calculate the corresponding funding:
if objSchool.getPublicSchool then
redQ3.Caption := 'Public school will receive R' + FloatToStr(objSchool.calcFunding)
else
redQ3.Caption := 'No funding available';