Question: If FileOne and FileTwo had been given in reverse alphabetical order and the pseudocode were changed as in Short Answer 33, what would be the
If FileOne and FileTwo had been given in reverse alphabetical order and the pseudocode were changed as in Short Answer 33, what would be the contents of Merged after the While loop is exited?
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.)

Suppose that the contents of FileOne and FileTwo are
FileOne: "Corinne""Marjorie""Shirley""Tamara"
FileTwo: "Arthur""Michael""Sam"
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
Step by Step Solution
3.52 Rating (155 Votes )
There are 3 Steps involved in it
Tamara S... View full answer
Get step-by-step solutions from verified subject matter experts
