INSTRUCTIONS INSTRUKSIES 1) Read the entire question bef…

INSTRUCTIONS INSTRUKSIES 1) Read the entire question before you start coding. Lees elke vraag noukeurig voordat jy begin met kodering. 2) Read the question carefully and do not do more than what is required. Lees elke vraag noukeurig en met ook nie meer doen as wat gevra is nie. 3) Try and get your program to compile and to run. Sometimes this means commenting code. Your commented code will still be marked. Probeer om jou program saam te stel en uit te voer. Soms beteken dit kommentaar op kode. Jou kommentaarkode sal steeds gemerk word. 4) If there is code which is commented out, and there is code that is not commented out for the same question only the uncommented code will be marked. As daar ‘n kode is waarop kommentaar gelewer word en sowel as kode vir dieselfde vraag waarop geen kommentaar gelewer word nie, sal slegs die ongekommenteerde kode gemerk word. 5) When you are finished, save your Delphi files. Click the submit button. (OR if this quiz automatically submits because you have run out of time, STOP coding and save.). A second quiz will become available,  open it. (This must be done within 5 minutes of submitting this quiz). Then you will have 10 minutes to zip your project FOLDER and upload the zipped file into the new quiz. That quiz will get the marks when your test has been marked. Stoor jou Delphi -lêers as jy klaar is. Klik op die knoppie stuur. (OF as die quiz outomaties ingedien word omdat jy nie genoeg tyd het nie, stop die kodering en stoor dit.) Daar is dan ‘n tweede quiz wat jy moet oopmaak. (Dit moet binne 5 minute na die indiening van hierdie quiz oopgemaak word). Dan het jy 10 minute tyd om jou projekvouer saam te pers (te zip) en dan die saamgeperste lêer in die nuwe quiz op te laai. Dit is die quiz wat vir punte gemerk sal word.

QUESTION 5 On the main form the btnQ5Click procedure opens t…

QUESTION 5 On the main form the btnQ5Click procedure opens the form frmQuestion5.Open the unit Question5_u.For long distance race there are often more athletes than there are the  number of tracks. So the athletes are ranked by qualifying times. and then given a position. For this race there are 3 lanes and 12 athletes.If Athlete A1 has the fastest time he gets track1 place 1, if athlete A2 has the second fastest time he gets track2 place 1 etc   Place 1 Place 2 Place 3 Place 4 Track1 A1 A4 A7 A10 Track 2 A2 A5 A8 A11 Track 3 A3 A6 A9 A12 Read the entire question before you start coding!   VRAAG 5 Op die hoofvorm maak die btnQ5Click prosedure die vorm frmQuestion5 oop.Maak die eenheid (unit) Question5_u oop.Vir die langafstande is daar baie dikwels meer atlete as wat die hoeveelheid bane dit toelaat. Atlete word geplaas volgens hulle kwalifiserende tye en hulle kry hulle posisie daarvolgens. Vir die wedloop is daar 3 bane en 12 atlete.As atleet A1 die vinnigste tyd het kry hy baan 1 en plek 1, as atleet A2 die tweede vinnigste tyd het, kry hy baan 2 en plek 1 ens.   Plek 1 Plek 2 Plek 3 Plek 4 Baan 1 A1 A4 A7 A10 Baan 2 A2 A5 A8 A11 Baan 3 A3 A6 A9 A12 Lees die hele vraag noukeurig voordat jy met die kodering begin.    

Due to Covid the 2020 Olympics had to be postponed to this y…

Due to Covid the 2020 Olympics had to be postponed to this year. Although South Africa is not one of the top countries we were all very excited when  Tatjana Schoenmaker not only go her gold but also set a new world record. By following the instructions in this exam you will be completing an Olympics app.  Right click on the blue button below to download the project for this exam UNZIP it Rename the folder to your name.  Weens Covid moes die Olimpiese Spele in 2020 tot vanjaar uitgestel word. Alhoewel Suid -Afrika nie een van die top -lande is nie, was ons almal baie opgewonde toe Tatjana Schoenmaker nie net ‘n goue medalje behaal het nie, maar ook ‘n nuwe wêreldrekord opgestel het. Volg die eksameninstruksies en voltooi ‘n toepassing vir die Olimpiese spele. Regskliek op die onderstaande blou knoppie en laai die projek vir die eksamen af. Onttrek (unzip) die lêers. Herbenoem die gids na jou naam. “South Africa strikes gold at the Tokyo Olympics, as Tatjana Schoenmaker won the women’s 200-meter breaststroke, dominating the competition as she went on to break an 8-year-old world record with a time of 2 minutes, 18.95 seconds” Available at: https://www.africanews.com/2021/07/30/tokyo-2020-schoenmaker-wins-gold-for-south-africa-breaks-world-record//. .]  “Suid-Afrika kry goud op die Olimpiese Spele in Tokio, terwyl Tatjana Schoenmaker die 200 meter borsslag vir vroue gewen het en die kompetisie oorheers het toe sy ‘n 8-jarige wêreldrekord met ‘n tyd van 2 minute, 18,95 sekondes oorheers het” Available at: https://www.africanews.com/2021/07/30/tokyo-2020-schoenmaker-wins-gold-for-south-africa-breaks-world-record//. .]   

1.5) You have been provided with a text file called Interest…

1.5) You have been provided with a text file called InterestingFacts.txt. It consists of 14 interesting facts about the Olympics. Each line starts with a year followed by a # and then the fact.  Here is a sample of the text file: (note that the lines are wrapped here but not in the actual file.)   1998#Surya Bonaly did a move which was banned  – a backflip landing on one blade. 2012#Paul McCartney earned 1 pound for his performance at the opening ceremony. 2002#Steven Bradbury was last until a collision occurred and left him the only one to finish, and so he got gold. Create two global arrays. one for the year as an integer and one for the fact. These will be parallel arrays. (3) Jy het ook ‘n tekslêer naamlik InterestingFacts.txt gekry. Dit bestaan uit 14 interessante feite oor die Olimpiese Spele. Elke reël begin met ‘n jaar gevolg deur ‘n # en dan die feit. Hier is ‘n voorbeeld van die tekslêer in Engels: (let op dat die lyne in die voorbeeld outomaties oorloop, maar nie in die werklike lêer nie.) 1998#Surya Bonaly did a move which was banned  – a backflip landing on one blade. 2012#Paul McCartney earned 1 pound for his performance at the opening ceremony. 2002#Steven Bradbury was last until a collision occurred and left him the only one to finish, and so he got gold. Skep twee globale skikkings. een vir die jaar as ‘n heelgetal en een vir die feit. Dit moet parallelle skikkings wees. 1.6) Create a user defined procedure which will read in the text file into the two arrays,. The fact should not include the #. Check if the file exists and if it does not then display a suitable message. (10) Skep ‘n gebruikersgedefinieerde prosedure wat in die tekslêer in die twee skikkings sal lees. Die feit moet nie die # insluit nie. Kyk of die lêer bestaan en as dit nie bestaan nie, dan moet ‘n geskikte boodskap vertoon word.  

QUESTION 5 On the main form the btnQ5Click procedure opens t…

QUESTION 5 On the main form the btnQ5Click procedure opens the form frmQuestion5.Open the unit Question5_u.For long distance race there are often more athletes than there are the  number of tracks. So the athletes are ranked by qualifying times. and then given a position. For this race there are 3 lanes and 12 athletes.If Athlete A1 has the fastest time he gets track1 place 1, if athlete A2 has the second fastest time he gets track2 place 1 etc   Place 1 Place 2 Place 3 Place 4 Track1 A1 A4 A7 A10 Track 2 A2 A5 A8 A11 Track 3 A3 A6 A9 A12 Read the entire question before you start coding!   VRAAG 5 Op die hoofvorm maak die btnQ5Click prosedure die vorm frmQuestion5 oop.Maak die eenheid (unit) Question5_u oop.Vir die langafstande is daar baie dikwels meer atlete as wat die hoeveelheid bane dit toelaat. Atlete word geplaas volgens hulle kwalifiserende tye en hulle kry hulle posisie daarvolgens. Vir die wedloop is daar 3 bane en 12 atlete.As atleet A1 die vinnigste tyd het kry hy baan 1 en plek 1, as atleet A2 die tweede vinnigste tyd het, kry hy baan 2 en plek 1 ens.   Plek 1 Plek 2 Plek 3 Plek 4 Baan 1 A1 A4 A7 A10 Baan 2 A2 A5 A8 A11 Baan 3 A3 A6 A9 A12 Lees die hele vraag noukeurig voordat jy met die kodering begin.