Name THREE peripherals which are essential to purchase when buying device 2.
If someone were to ask you whether they should get a capped…
If someone were to ask you whether they should get a capped fibre, uncapped fibre or ADSL uncapped data, how would you go about advising them?
This is a spare file upload question. You should not need i…
This is a spare file upload question. You should not need it.
Hierdie is ‘n ekstra oplaai vraag. Jy behoort dit nie nodig…
Hierdie is ‘n ekstra oplaai vraag. Jy behoort dit nie nodig te kry nie.
Question 2 In Delphi, open the Question2_p project file i…
Question 2 In Delphi, open the Question2_p project file in the Question 2 folder. 2.1) Create a formCreate procedure. Set 2 tabs in the TRichedit (redDisplay) at 10 and 75. (3) 2.2) D&D uses throwing of a dice to determine in-game events. You have been provided with four images in the Question2 folder, namely: d4 – 1.bmp d4 – 2.bmp d4 – 3.bmp d4 – 4.bmp Create the btnThrowDiceClick procedure for the Throw Dice button. Create a random number in the range 1 to 4. Display this random number in the lblRandomNo label and then set the image’s picture to the correct file, depending on this random number. (14) 2.3) When registering you get a free T-shirt although you can order more than one. The registration fee is R250 for the day. The price of the T-Shirt depends on the size. Prices are provided in the radiogroup. Remember that the first T-shirt is free. 2.3.a) Declare a global variable for the registration fee. (1) 2.3.b) Create the btnCheckClick procedure for the Check button. You must calculate the final payment required on registration (set the global variable to this figure). Display the payment, as currency in the Registration fee panel (pnlReg), and change the background to a different colour, e.g light blue. (16) 2.4) Complete the btnEarlyBirdClick procedure for the Early Bird Button. If you pay early you get a 5% early bird discount. Calculate 5% of the registration fee you calculated in question 2.3.b. Display the discount in the pnlDiscount, and the final amount in the panel pnlFinal. (5) 2.5) Complete the btnSlipClick procedure for the Slip button. This procedure gathers all the information from the form to produce a nicely formatted slip in the TRichEdit redDisplay. Start of by clearing the TRichEdit. The first line must contain the name and the random number from the lblRandomNo label in brackets. The second line contains the words : ‘Registration fee’ and the amount of 250. The third line has the words ‘Number of T-Shirts’ and quantity from the TSpinEdit speQty. The forth line contains the word ‘Discount’ and the discount amount from the panel pnlDiscount. The final line contains words ‘Final Amount’ and the final amount from the panel pnlFinal. Ensure that the numbers are neatly in a column and rows 2-5 are slightly indented. Right click on the button below to see an example of the output for all the buttons in a new tab. (14) Note that programming style is important – variable names and indentation matter! (2) TOTAL FOR QUESTION2 (56) TOTAL FOR THE TEST
QUESTION 1 You should have already downloaded a zip…
QUESTION 1 You should have already downloaded a zip file, and unzipped it, and renamed the folder. Inside the ‘2021 gr10 sba003a yourname’ folder, is an empty folder called Question1. Create a new Delphi project with one form. Save ALL the files in the Question1 folder. 1.1) Add a panel to your form. The caption of the panel should be your name, and should appear at at the top left of the panel. Make the colour of this panel skyBlue. This panel will group all the other components. Rename it appropriately. (5) 1.2) Add 4 labels, 2 edits and a button to the panel. (If you drag them, they should not go out of the panel.) (7) 1.3) Set the font of the label lblNoTeams to Trebuchet MS, size 24 (2) 1.4) Set the captions, rename the components and move them around so that they look like the provided picture. Right click on the button below to open the picture in a new tab. (8) 1.5) Create an onClick procedure for the ‘Calculate no of teams’ button. Each team sits at 1 table. Ensure that both values in the edits are valid integers. If they are not, you should show a friendly message to tell the user to enter a valid number. If both values are valid, calculate how many tables (i.e teams) you need for the given number of participants, given the number of people who can sit at a table. Remember you cannot have part of a table. Display the number of tables required in the lblNoTeams label. (22) 1.6) Save ALL your files inside the Question1 folder. TOTAL FOR QUESTION 1
VRAAG 1 Jy moes reeds ‘n zip-lêer afgelaai, ge-‘upz…
VRAAG 1 Jy moes reeds ‘n zip-lêer afgelaai, ge-‘upzip’ en die lêergids hernoem het. Binne die ‘2021 gr10 sba003a jounaam’ lêergids, is ‘n leë lêergids: Question1. Skep ‘n nuwe Delphi-projek met een vorm. Stoor AL die lêers in die Question1-lêergids. 1.1) Voeg ‘n paneel op jou vorm by. Die byskrif (caption) van die paneel moet jou naam wees, en dit moet bo, aan die linkerkant van die paneel verskyn. Maak die kleur van die paneel skyBlue. Die paneel sal al die ander komponente saam groepeer. Hernoem dit met ‘n toepaslike naam. (5) 1.2) Voeg vier etikette (labels), 2 tekshokkies (edits) en ‘n knoppie op die paneel by. (As jy die komponente van die paneel probeer aftrek, moet dit nie van die paneel kan afgaan nie.) (7) 1.3) Stel die font van die etiket (label) lblNoTeams na Trebuchet MS, grootte 24. (2) 1.4) Stel die byskrifte (captions), hernoem die komponente en skuif dit rond sodat hulle soos die prentjie lyk wat hieronder voorsien word. Regskliek op die knoppie hieronder om die prentjie in ‘n nuwe oortjie oop te maak. (8) 1.5) Skep ‘n prosedure vir die ‘Calculate no of teams’-knoppie. Elke span sit by 1 tafel. Sorg dat beide waardes in die tekshokkies (edits) geldige heelgetalle (integers) is. Indien hulle nie is nie, moet jy ‘n vriendelike boodskap vertoon om die gebruiker te vra om ‘n geldige nommer in te tik. Indien beide waardes geldig is, bereken dan hoeveel tafels (dus spanne) jy gaan nodig hê vir die gegewe aantal spelers, gegewe die hoeveelheid mense wat by ‘n tafel kan sit. Onthou dat jy nie ‘n gedeeltelike tafel mag hê nie. Vertoon die aantal tafels wat nodig is in die lblNoTeams etiket. (22) 1.6) Stoor AL jou lêers binne-in die Question 1 lêergids. TOTAAL VIR VRAAG 1
The Figure below displays a Lineweaver-Burk double-reciproca…
The Figure below displays a Lineweaver-Burk double-reciprocal plot. Fill in the name of the variables used for both axes, as well as the definitions for the slope, x-intercept, and y‑intercept. Match the number on the left (e.g. (1)) with the correct letter on the right (e.g. B).
BONUS QUESTION Worth 10 points (2.5 each). You can only reac…
BONUS QUESTION Worth 10 points (2.5 each). You can only reach a maximum of 150 points in this exam! Proline racemase catalyzes the racemization from L-proline to D-proline (see image below). From the following list, which transition state analogues can be used as potent competitive inhibitors? Multiple answers are possible!
QUESTION 4 – FastestRower – 25 marks 1. Create a new cla…
QUESTION 4 – FastestRower – 25 marks 1. Create a new class called FastestRower. 2. Add code to declare variables for: Number of rowers Surname Time to row 1000m Power to weight ratio (P/W) Fastest Time Fastest Time Surname Highest P/W Highest P/W Surname Average Power to Weight ratio 3. Add code to ask the user how many rowers to enter the details for. 4. Add code to repeatedly input: surname, time and P/W until all of the rowers’ details have been processed. 5. Add code to find the fastest time and the name of the rower with the fastest time. You can assume that all rowers will be faster than 9999 seconds. 6. Add code to find the highest P/W and the name of the rower with the highest P/W. 7. Add code to find the average P/W. 8. Display the number of rowers processed, the average P/W, the fastest time, the surname of the rower with the fastest time, the P/W and the surname of the rower with the highest P/W as follows: