
Programming Logic and Design, Introductory 7th Edition by Joyce Farrell
النسخة 7الرقم المعياري الدولي: 1285225562
Programming Logic and Design, Introductory 7th Edition by Joyce Farrell
النسخة 7الرقم المعياري الدولي: 1285225562The Apgar Medical group keeps a patient file for each doctor in the office. Each record contains the patient’s first and last name, home address, and birth year. The records are sorted in ascending birth year order. Two doctors, Dr. Best and Dr. Cushing, have formed a partnership. Design the logic that produces a merged list of their patients in ascending order by birth year.
الخطوة 1 من14
Pseudo code:
The following is the required pseudo code to merge the records of the two files of Dr. Best and Dr. Crushing. The records are merged and the list is generated in ascending order based on patients’ birth year.
start
Declarations
InputFile drBestFile
InputFile drCushingFile
ouputFile mergedFile
string bestFirstName
string bestLastName
string bestHomeAddress
num bestBirthYear
string cushingFirstName
string cushingLastName
string cushingHomeAddress
num cushingBirthYear
string END_NAME = “ZZZZZZ”
string bothFilesAtEnd = “N”
getReady()
while bothFilesAtEnd <> “Y”
mergeRecords()
endwhile
finishUp()
stop
الخطوة 2 من 14
الخطوة 3 من 14
الخطوة 4 من 14
الخطوة 5 من 14
الخطوة 6 من 14
الخطوة 7 من 14
الخطوة 8 من 14
الخطوة 9 من 14
الخطوة 10 من 14
الخطوة 11 من 14
الخطوة 12 من 14
الخطوة 13 من 14
الخطوة 14 من 14
لماذا لم يعجبك هذا التمرين؟
أخرى