Question: I need to write a program that merges the numbers located in two files and then writes all those numbers into a third file. The
I need to write a program that merges the numbers located in two files and then writes all those numbers into a third file. The programw ill take input from two different files and the output is written to a third file. Each input file contains a list of numbers of type int in a sorted order and from smallest to largest. Once the program is run, the output file will contain all the numbers that were in the two input files in one longer list that is sortedf from smallest to largest in the format below. The program should define a function that is called with our two input-file streams and the output-file stream as 3 arguments. Use 
Algorithm/Pseudo-code for Exercise 3 Open the two input files, check for file open errors Declare an integer array that is large enough to hold the numbers from both files. Read the first file into the integer array Read the second file into the integer array. Now the integer array contains numbers from both file. 1. 2. 3. 4. SSh gr araomthe tasbhok
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
