Steven M. answered 03/01/17
Tutor
5
(5,792)
17,500+ Wyzant Hours Taught | Berkeley Grad | Classroom Experience!
A: The participant IDs are in order in 2 files. This is basically asking for a merge sort. I'd read all of 1 file into an array of structs, all of the 2nd file into another array of structs, then since they're in order, set counter1 and counter2 to zero, and write whoever has the lowest ID num between arr1[counter1] and arr2[counter2] and advance the counter