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:
***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 GoodbyeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started