Which names are added to the end of the file Merged to complete the merging of the

Question:

Which names are added to the end of the file Merged to complete the merging of the two files?


Refer to the following pseudocode, which partially merges the files with internal names FileOne and FileTwo into a third file named Merged. (Each record in FileOne and FileTwo contains a single field of string type.)

Read FileOne, Namel Read FileTwo, Name2 While (NOT EOF(FileOne)) AND (NOT EOF(FileTwo)) If Namel < Name2 Then Write Merged, Namel Read FileOne, Namel Else Write Merged, Name2 Read FileTwo, Name2 End If End While

Suppose that the contents of FileOne and FileTwo are

FileOne: "Corinne""Marjorie""Shirley""Tamara"

FileTwo: "Arthur""Michael""Sam"

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Prelude To Programming

ISBN: 9780133741636

6th Edition

Authors: Stewart Venit, Elizabeth Drake

Question Posted: