
Programming Logic and Design, Introductory 7th Edition by Joyce Farrell
Edition 7ISBN: 1285225562
Programming Logic and Design, Introductory 7th Edition by Joyce Farrell
Edition 7ISBN: 1285225562The Martin Weight Loss Clinic maintains two patient files—one for male clients and one for female clients. Each record contains the name of a patient and current total weight loss in pounds. Each file is in descending weight loss order. Design the logic that merges the two files to produce one combined file in order by weight loss.
Step 1 of 9
Pseudo code:
The below is the pseudo code which merges two files to one file in the order of weight loss.
start
Declarations
InputFile maleClients
InputFile femaleClients
OutputFile mergedFile
String mName
num mWeight
String fName
num fWeight
String END_NAME=”ZZ”
String FILE_END=”N”
call()
while FILE_END<>”Y”
merge()
endWhile
endUp()
stop
Step 2 of 9
Step 3 of 9
Step 4 of 9
Step 5 of 9
Step 6 of 9
Step 7 of 9
Step 8 of 9
Step 9 of 9
Why don’t you like this exercise?
Other