Question: Write a program that merges the numbers in two files and writes all the numbers into a third file. Your program takes input from two

Write a program that merges the numbers in two files and writes all the numbers into a third file. Your program takes input from two different files and writes its output to a third file. Each input file contains a list of numbers of type int in sorted order from the smallest to the largest. After the program is run, the output file will contain all the numbers in the two input files in one longer list in sorted order from smallest to largest using language C++.

Be sure to implement using 3 methods:

array_size

outputArray_size

?void

Sample Output Below:

Write a program that merges the numbers in two files and writes

***Unit Test Cases ** Unit Test Case 1: Function Name - show function name here Case 1.1: explain test case 11 here (e.g-, input arguments) Case 1.1 passed Case 1.2: explain test case 1.2 here (e.g-, input arguments) Case 1.2 passed Press any key to continue Unit Test Case 2: Function Name - show function name here Case 2.1: explain test case 2.1 here (e.g-, input arguments) Case 2.1 passed Case 2.2: explain test case 2.2 here (e.g-, input arguments) Case 2.2 passed Press any key to continue Add more test cases below Press any key to continue Welcome to Xiao Qin' s sorting program Enter the first input file name: input1.txt The list of 4 numbers in file inputl.txt is 12 Enter the second input file name input2.txt The list of 6 numbers in file input2. txt is 16 23 The sorted list of 10 numbers is: 3 4 6 7 8 9 11 12 16 23 Enter the output file name: output3.txt Please check the new file - output3.txt Goodbye

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!