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 โ
Q1โ Section header โ
Q1โ Section header โ
1.1Write code to set the font size of the text on the label lbl Question1 to 14 pt display the text Good Health Medical Centre the label
1.2Button [Question1_2] The community is encouraged to contribute towards a medical aid scheme. The scheme offers four options Option A to Option D. Option A provides the minimum number of benefits and is the least expensive option with an amount
1.3Button [Question1_3] The patient s account can be paid over a period of 12 months. The first payment is calculated as 15% of the account balance. After the first payment has been deducted he balance must be paid in equal payments
1.4There are three doctors on duty every day Doctor 1, Doctor 2 and Doctor 3. The total
1.4(a\ Convert the instruction provided in the algorithm above into programming code to calculate and display the number of patients per doctor
1.4The doctors on duty have to wait until all the patients on the list have been attended to before they can sign out as a team They have to provide the
Q2โ Section header โ
Q2โ Section header โ
Q2โ Section header โ
2.1The given incomplete object class TPrescription Item Prescription Item contains the declaration of four attributes that describes the
2.1.1to
2.1below. NOTE: The dosage attribute consists of four characters in the format XX#X where the # is used as a symbol to separate information Example 1: D1#
2.1.1Write code for a constructor method to receive the tablet code, age code number of days and the price per tablet as parameter values. Assign these values to the relevant attributes
2.1.2Write a method called calc TabletsPerDay that will use the dosage code to determine and return the number of tablets that is prescribed per day
2.1.3Write a method called compile FrequencyOfUse Message that will use the dosage code to compile and return a message indicating when the tablets should be taken.
2.1.4Write a method called calcTotal Tablets to calculate and return the total number of tablets for this prescription item (3\
2.1.5Write accessor methods fo r the tablet code and price attributes (2\
2.1Write a compileLabel method to return the necessary information to be printed on the label of the tablet container in the format shown below Example of output if the tablet code is HPCMCN, the
2.2Two parallel arrays are provided in the incomplete class Question2 .pas Question2.java The array called arrCodes
17.89, 14.60, 23.50, 22.75 The data for the first tablet can be interpreted as follows: The code of the tablet is CBLTAD The price of a single tablet is
17.89Do the following to complete the code for each button in the main form unit (Delphi\/GUI class (Java\ NOTE: The object objPrescriptionItem has been declared in the program
2.2.1Code for the ombo The user is required to select the code of the tablet from the relevant combo box. If the code selected ends with the letter
2.2Button [2.2. Instantiate Prescription Item Use the information supplied by the user and i nstantiate a new Prescription Item object
2.2Button [2.2. Display] Use the compileLabel method to display the label information in the output area on the Prescription Item
2.2.4Total of all Prescription Items button is clicked. Example of output for the prescription item
2.2Button [2.2. Total of all Prescription Items Display the total amount owed for this specific prescription
2.2Button [2.2. Clear All Clear the output area for the prescription item and the prescri ion account. Also c
3.1QUESTION
3.2below Supplied GUI: The supplied GUI contains components for events that have to take place. An example of the GUI is given below. Use the program requirements in the question
3.1Button [3.1 Display Ward S tatistics The program must display the different sections ward numbers and the number of patients in each ward.
3.2Button [3.2 lace New Patient A text file called DataQ3.txt contains information on new patients that need to be admitted. Each line of text in the file
Q3โ Section header โ