This section provides a quick preview of questions from the document. It may not display every question or the complete wording of each one. For the full content, including diagrams, tables and other information, view the original PDF above.
Q1โ Section header โ
Q2โ Section header โ
Q3โ Section header โ
Q1โ Section header โ
Q1โ Section header โ
Q1โ Section header โ
Q1โ Section header โ
Q1โ Section header โ
1.1Complete the code in the List button by formulating an SQL statement to display all the fields from the tblClients table sorted by Surname and then by
1.2Mr Ferreira button by creating a query that will calculate the total amount owed by Mr Ferreira ( ClientNo field entry is 1). swer. The heading must be must be formatted to display with TWO decimal places.
1.3All the bookings for the been cancelled. Complete English clients ( Nationality tblClients table.
1.4The group uses a 25% markup when calc the code for the Date and (selling price minus the 25% markup) for each item ordered by Mr Guiseppe Ferreira ( ClientNo the
1.5The Petersen Group has decided that t hey want to support all soccer fans by giving them R5,00 discount on the se lling price of every item they have ng price is R30,00 or more the button by writing a quer
1.6Complete the code for the Faltemeyer the following client data to the tblClients Mr Harald Faltemeyer , ID 7407185683074, Swedish NOTE: The content of the
Q2โ Section header โ
Q2โ Section header โ
Q2โ Section header โ
2.1Create an object cla ss (another unit) named ExtraItem_Uxxxx unit as in your Quest2_X folder (xxxx should be replaced your examination number). All fields in this class fields and methods that you need to
2.1.2Write a constructor method must be initialised in the constr uctor. (4)4
2.1.3Write an appropriately named 'get' method (accessor method) to return the guest number. (2)2
2.1.42
2.1.5Write a method named calculatePrice that calculates the final (2)2
2.1.6Write a method named with information on the item formatted as follows:
2.2.1Create an array named arrItems that holds TExtraItem Write code in the according to the following steps: Display a suitable me
2.1.1
2.2objects. OnActivate Eventhandler of the form to read information from the text file Extras.txt (a\ Test if the text file exists. NSC
Q3โ Section header โ
Q3โ Section header โ
Q3โ Section header โ
Q3โ Section header โ
3.1Write code to convert all the alphanumeric characters in the arrPhoneNos Replace the alphabetic characters (upper case and lower case) in the
3.2Use the numerical phone num bers to check that ther e are no duplicates in the numbers. If no duplicates At the end of the list t were found (if any).
Q1โ Section header โ
Q1โ Section header โ
Q1โ Section header โ
1.1List to display all the fields from the tblClients table sorted by and then
1.2Mr Ferreira ) by creating a query that ClientNo Total Due and the lay with TWO decimal places.
1.3All the bookings for the been cancelled. Complete the code for menu option C ( English by creating a query to delete all English clients ( Nationality
1.4The group uses a 25% markup when calc the code for menu option D Date and (selling price minus the 25% markup) for each item ordered by Mr Guiseppe Ferreira (
1.5The Petersen Group has decided that t hey want to support all soccer fans by giving them R5,00 discount on the se lling price of every item they have ng price is R30,00 or more menu option E
1.6Complete the code for menu option F add the following client data to the table: Mr Harald Faltemeyer , ID 7407185683074, Swedish
Q2โ Section header โ
Q2โ Section header โ
2.1Create an object class named ExtraItemxxxx.java and save this class as ExtraItemxxxx.java in your Quest2_X fields and methods that you need to create and code are described below:
2.1.1ExtraItemxxxx . Create appropriately named and typed private fields (suggested field names are given in brackets): guestNum cost
2.1.2Write a constructor method which accepts the guest number, the item description and the cost per item as parameters. All the fields must be initialised in the constructor.
2.1.3Write an appropriately named 'get' method (accessor method) to return the guest number. (2)2
2.1.42
2.1.5Write a method named calculatePrice that calculates the final st + the calculated profit). (2)2
2.1.6
2.2.1Create an array named arrItems ExtraItemxxxx . Write code to read informa tion from the text file Extras.txt according to the following steps: Display a suitable message if the file
2.2that holds objects of (a\ Test if the text file exists. NSC from the text file.
2.2.2
Q3โ Section header โ
Q3โ Section header โ
Q3โ Section header โ
3.1Write code to convert all the al phanumeric characters in the The numeric values in the telepho ne numbers remain as they are.
3.2Use the numerical telephone numbers to the array. If duplicates are found, t he program must display the duplicate At the end of the list t were found (if any). Example of the output:
Q1โ Section header โ
Q1โ Section header โ