PART III Use the class implemented in part 1 to write the class method generateCode(). The method generates a code for the PCR test as follows: the first and last letters of the patient's name...

What is the solution for this question ( using java language)PART III<br>Use the class implemented in part 1 to write the class method generateCode().<br>The method generates a code for the PCR test as follows: the first and last letters of the patient's name (letters<br>should be capitalized), followed by the previous test result and a letter (Y or N) to indicate whether the patient is<br>recovered or not. The letter Y indicates that the patient is recovered.<br>Example 1: if the patient name is “Maya Daad

Extracted text: PART III Use the class implemented in part 1 to write the class method generateCode(). The method generates a code for the PCR test as follows: the first and last letters of the patient's name (letters should be capitalized), followed by the previous test result and a letter (Y or N) to indicate whether the patient is recovered or not. The letter Y indicates that the patient is recovered. Example 1: if the patient name is “Maya Daad", her previous result is 19 and she hasn’t recovered, then the pcr code is MD19N. Example 2: if the patient name is “Nabil Kanbar", his previous result is 24 and he has recovered, then the pcr code is NR24Y.

Jun 02, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here