Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

HELP writing a pseudocode for the following question!! the Apgar medical group k

ID: 673012 • Letter: H

Question

HELP writing a pseudocode for the following question!!

the Apgar medical group keeps a patient file for each doctor in the office each record contains the patients first and last name home address and birth year. the records are sorted in ascending birth year order. two dr dr best and dr cushing have formed a partnership.

A. design a logic that produces a merged list of patients' name i ascending order by birth year.

B. modify the program so that it does not display the patients' names but only produces a count of the number of patients' born each year.

Explanation / Answer

Please find the required puedocode:

Let 'A' be the list of Records of patients(containing n records):

loop for each of record in list of patients(outer loop) from first patient(1 till n)

{

loop for each of record in list of patients(inner loop) from second patient till end(2 till n)

{

if(year of birth of current patine is greater than next patient)

swap that both patient.

}

}

Finally result will contain patients according to year of birth in ascending order