The input to the application was a specification of files and the kind of sort and merge operations to use, and the output would be machine code for performing the specification.
An input to the application comprised details about files and the specific sorting and merging procedures to use. The result was machine code that could carry out these specified actions.