2.1) Complete the  btnQ2_1ClickProcedure.Remember you only c…

2.1) Complete the  btnQ2_1ClickProcedure.Remember you only create the SQL statement in the procedure. DO NOT CHANGE the rest of the provided code.Create a SQL statement to display the Year, Event and Medal won by the Russian team (NOC =  RUS) From the table Events display in Event in ascending order (4) Voltooi die btnQ2_1ClickProcedure. Onthou dat jy slegs die SQL-stelling in die prosedure moet skep. MOENIE die res van die kode wat gegee is, verander nie. Skep ‘n SQL-stelling om die Jaar, Item en Medalje wat deur die Russiese span (NOC = RUS) gewen is uit die Items tabel in stygende volgorde te vertoon. 2.2) Complete the  btnQ2_2ClickProcedure.Remember you only create the SQL statement in the procedure. DO NOT CHANGE the rest of the provided code.Create a SQL statement to display the PName from the People table with the Event they participated in for the Russian team in the year 2008. Remember PeopleID is the foreign key and connects to the PID  in People. (5) Voltooi die btnQ2_2ClickProcedure. Onthou dat jy slegs die SQL -stelling in die prosedure moet skep. MOENIE die res van die kode wat gegee is, verander nie. Skep ‘n SQL-stelling om die PName uit die People-tabel te vertoon saam met die item waaraan hulle in 2008 vir die Russiese span deelgeneem het. Onthou PeopleID is FOREIGN KEY wat aansluit by die PID in People.  

1.3) In the ‘Create List’ button’s click procedure write the…

1.3) In the ‘Create List’ button’s click procedure write the code code  to add all the years from 1896  until 2020 that we would have expected the Olympics to take place. Remember that the Olympics took place every 4 years. (We will ignore the fact that the Olympics was cancelled twice.)Your solution must use a loop to determine these numbers. (4) Skryf die kode vir die prosedure vir die ‘Skeplys’-knoppie (‘Create List’ button) om al die jare van 1896 tot 2020 by te voeg waarin die Olimpiese Spele sou plaasvind. Onthou dat die Olimpiese Spele elke 4 jaar plaasgevind het. (Ons moet die feit ignoreer dat die Olimpiese Spele twee keer afgelas is.)Jou oplossing moet ‘n lus gebruik om hierdie getalle te bepaal. 1.4) In the button ‘Non Leap years’ click procedure call your user defined procedure to add the memo to the form. Then go through the values in the listbox and count how many of those numbers are leap years, if it is not a leap year add the number to the memo. At the end display a show message dialog box which displays the number of leap years with a suitable message. (9) As die knoppie ‘Nie skrikkeljare’ (‘Non Leap years’) gedruk word, moet die gebruikers gedefinieerde prosedure geroep word om die memo by die vorm by te voeg. Gaan dan deur die waardes in die keuselys en tel hoeveel van die jaargetalle skrikkeljare is, as dit nie ‘n skrikkeljaar is nie, voeg die nommer by die memo. Vertoon aan die einde ‘n dialoogkassie (show message dialog box) met ‘n gepaste boodskap wat die aantal skrikkeljare sal aandui.

QUESTION 3On the main form the btnQ3Click procedure opens th…

QUESTION 3On the main form the btnQ3Click procedure opens the form frmQuestion3. Open the unit Question3_u.For this question you may NOT use SQL statements.   VRAAG 3 Maak die btnQ3Click-prosedure op die hoofvorm frmQuestion3 oop. Maak die eenheid (unit) Vraag3_u oop. Vir hierdie vraag mag jy NIE SQL-stellings gebruik nie.   3.1) Complete the btnQ3_1Click procedure.Using Delphi code filter the events table to determine how many under 20’s there were in the 2016 Olympics. Display the value with a suitable message in the memo.Example of output:Number of under 20’s in 2016 Olympics 105. (5) Voltooi die btnQ3_1Klikprosedure. Gebruik die Delphi -kode om die gebeurtenistabel te filter om vas te stel hoeveel deelnemers die onder die 20’s in die Olimpiese Spele 2016 was. Wys die waarde met ‘n geskikte boodskap in die memo. Voorbeeld van afvoer: Aantal onder 20’s in 2016 se Olimpiese Spele 105. 3.2) Complete the btnQ3_2Click procedure.Without using the filter statement, count how many Gold, Silver and Bronze medals were awarded in the year that is entered in by the user in the Edit. Clear the memo and then add a heading and then the three medals and their totals.  If 2016 was entered into the edit, you would have the following output:Number of medals for 2016Gold  629Silver 619Bronze 649 (15) Voltooi die btnQ3_2Klikprosedure. Sonder om die filterverklaring te gebruik, tel hoeveel goud-, silwer- en bronsmedaljes wat toegeken is in die jaar wat die gebruiker in die redigeerblokkie (‘edit box’) ingevoer het. Maak die memo skoon en voeg dan ‘n opskrif by en dan die drie medaljes en hul totale. As 2016 in die redigeerblokkie (‘edit box’) ingevoer is, sal jy die volgende afvoer kry: Aantal medaljes vir 2016 Goud 629 Silwer 619 Brons 649  

QUESTION 2On the main form the btnQ2Click procedure opens th…

QUESTION 2On the main form the btnQ2Click procedure opens the form frmQuestion2.Open the unit frmQuestion2_u.When you run the project you will click on the button btnQ2 to open this form.You have been provided with an Access database called Olympics.mdb. It contains 3 tables with the following structure:  TABLE NAME People Events CountryCodes Primary Key PID (Integer) EventID (AutoNumber) NOC(TEXT) PName (Text) Age (Integer) region (TEXT) PGender (Text) Height(Integer) Notes (TEXT) FOREIGN KEY NOC (Text) Weight (Integer) Season (Text) Year (Integer) City (Text) Event (Text) Sport (Text) Medal (Text) FOREIGN KEY PeopleID You can click on the blue button below to open a sample of the tables in a new tab. Part of this form has already been coded. DO NOT change the provided code. You will complete the button click procedures by completing the SQL statements as per the instructions given below. The Restore Database button has been implemented, you can click it to restore the database to its original state. VRAAG 2 Maak die btnQ2Click-prosedure op die hoofvorm frmQuestion2 oop. Maak die eenheid frmQuestion2_u oop. As jy die projek uitvoer, moet jy op die knoppie btnQ2 kliek om die vorm oop te maak. Daar is ‘n Access -databasis genaamd Olympics.mdb wat jy moet gebruik. Dit bevat 3 tabelle met die struktuur soos hierbo aangedui. Jy kan op die blou knoppie hierbo klik om ‘n voorbeeld van die tabelle in ‘n nuwe tab oop te maak. ‘n Deel van hierdie vorm is reeds gekodeer. MOENIE aan die kode wat reeds gegee is verander nie. Jy moet die knoppie-klikprosedures voltooi deur die SQL-stellings te voltooi volgens die instruksies hieronder. Die Herstel databasis-knoppie is geïmplementeer. Jy kan daarop klik om die databasis na sy oorspronklike toestand te herstel.  

1.3) In the ‘Create List’ button’s click procedure write the…

1.3) In the ‘Create List’ button’s click procedure write the code code  to add all the years from 1896  until 2020 that we would have expected the Olympics to take place. Remember that the Olympics took place every 4 years. (We will ignore the fact that the Olympics was cancelled twice.)Your solution must use a loop to determine these numbers. (4) Skryf die kode vir die prosedure vir die ‘Skeplys’-knoppie (‘Create List’ button) om al die jare van 1896 tot 2020 by te voeg waarin die Olimpiese Spele sou plaasvind. Onthou dat die Olimpiese Spele elke 4 jaar plaasgevind het. (Ons moet die feit ignoreer dat die Olimpiese Spele twee keer afgelas is.)Jou oplossing moet ‘n lus gebruik om hierdie getalle te bepaal. 1.4) In the button ‘Non Leap years’ click procedure call your user defined procedure to add the memo to the form. Then go through the values in the listbox and count how many of those numbers are leap years, if it is not a leap year add the number to the memo. At the end display a show message dialog box which displays the number of leap years with a suitable message. (9) As die knoppie ‘Nie skrikkeljare’ (‘Non Leap years’) gedruk word, moet die gebruikers gedefinieerde prosedure geroep word om die memo by die vorm by te voeg. Gaan dan deur die waardes in die keuselys en tel hoeveel van die jaargetalle skrikkeljare is, as dit nie ‘n skrikkeljaar is nie, voeg die nommer by die memo. Vertoon aan die einde ‘n dialoogkassie (show message dialog box) met ‘n gepaste boodskap wat die aantal skrikkeljare sal aandui.

QUESTION 1The main form called frmOlympics contains 5 button…

QUESTION 1The main form called frmOlympics contains 5 buttons. Each of these opens another form for the questions 2, 3, 4 and 5.You will work on this form (frmOlympics) to complete question 1.   VRAAG 1 Die hoofvorm genaamd frmOlympics bevat 5 knoppies. Elkeen hiervan maak ‘n ander vorm oop vir vrae 2, 3, 4 en 5. Om vraag 1 te voltooi moet jy aan dié vorm (frmOlympics) werk.   1.1) Add a Listbox and 2 buttons to the form. One button’s caption should be ‘Create List’ and the other ‘Non Leap years’.Rename them appropriately. (3) Voeg ‘n “Listbox” en 2 knoppies by op die vorm. Die een knoppie moet ‘Skeplys’ en die ander ‘Nie -skrikkeljare’ genoem word. Herbenoem hulle op die regte manier. 1.2) A global variable, memDisplay of TMemo type has been declared for you.Create a user defined function called AddMemo which will dynamically create the memo and add the heading: ‘ Non Leap year Olympics’ to the memo.[Note if you cannot do this question you may add a memo manually , so that you can do the rest of the questions, but note you will not get the marks for it.] (10) ‘n Globale veranderlike, memDisplay van die TMemo-tipe is reeds vir jou verklaar. Skep ‘n gebruikersgedefinieerde funksie genaamd AddMemo, wat die memo dinamies sal skep en die opskrif: ‘Non -Leap year Olympics’ by die memo sal voeg. [Let op: as jy hierdie vraag nie kan doen nie, kan jy self ‘n memo byvoeg sodat jy die res van die vrae kan doen, maar let op daarop dat jy nie punte daarvoor sal kry nie.]  

3.3) In 2016 it was discovered that the scale for the swimm…

3.3) In 2016 it was discovered that the scale for the swimming events was out by 2kg. But this was discovered only once all the contest weight had been inputted into the database. Complete the btnQ3_3Click procedure to increase the weight by 2 for all entries of the sport Swimming for the year 2016. Sample of the results.(You can reset the database by clicking on the button btnRestore)Example of adjusted values. EventID PeopleID Weight 902 465 94 1935 100 102 10288 5577 66   (8) In 2016 is ontdek dat die skaal vir die swembyeenkomste met 2 kg uit was. Maar dit is eers ontdek nadat al die gewigte van die wedstryd in die databasis ingevoer is. Voltooi die btnQ3_3 Klikprosedure om die gewig met 2 te verhoog vir alle inskrywings van die sport Swem vir die jaar 2016. Voorbeeld van die uitslae. (Jy kan die databasis herstel deur op die knoppie btnRestore te klik). Voorbeeld van aangepaste waardes.     EventID PeopleID Weight 902 465 94 1935 100 102 10288 5577 66     TOTAL FOR QUESTION 3 [28] TOTAAL VIR VRAAG 3  

QUESTION 2On the main form the btnQ2Click procedure opens th…

QUESTION 2On the main form the btnQ2Click procedure opens the form frmQuestion2.Open the unit frmQuestion2_u.When you run the project you will click on the button btnQ2 to open this form.You have been provided with an Access database called Olympics.mdb. It contains 3 tables with the following structure:  TABLE NAME People Events CountryCodes Primary Key PID (Integer) EventID (AutoNumber) NOC(TEXT) PName (Text) Age (Integer) region (TEXT) PGender (Text) Height(Integer) Notes (TEXT) FOREIGN KEY NOC (Text) Weight (Integer) Season (Text) Year (Integer) City (Text) Event (Text) Sport (Text) Medal (Text) FOREIGN KEY PeopleID You can click on the blue button below to open a sample of the tables in a new tab. Part of this form has already been coded. DO NOT change the provided code. You will complete the button click procedures by completing the SQL statements as per the instructions given below. The Restore Database button has been implemented, you can click it to restore the database to its original state. VRAAG 2 Maak die btnQ2Click-prosedure op die hoofvorm frmQuestion2 oop. Maak die eenheid frmQuestion2_u oop. As jy die projek uitvoer, moet jy op die knoppie btnQ2 kliek om die vorm oop te maak. Daar is ‘n Access -databasis genaamd Olympics.mdb wat jy moet gebruik. Dit bevat 3 tabelle met die struktuur soos hierbo aangedui. Jy kan op die blou knoppie hierbo klik om ‘n voorbeeld van die tabelle in ‘n nuwe tab oop te maak. ‘n Deel van hierdie vorm is reeds gekodeer. MOENIE aan die kode wat reeds gegee is verander nie. Jy moet die knoppie-klikprosedures voltooi deur die SQL-stellings te voltooi volgens die instruksies hieronder. Die Herstel databasis-knoppie is geïmplementeer. Jy kan daarop klik om die databasis na sy oorspronklike toestand te herstel.