Question: Ext ra Credit - Merge Sorted Numbers (25 points) Write a program that merges then Your program takes input from two different files and writes

 Ext ra Credit - Merge Sorted Numbers (25 points) Write a
program that merges then Your program takes input from two different files

Ext ra Credit - Merge Sorted Numbers (25 points) Write a program that merges then Your program takes input from two different files and writes its output to a third file. Each input tile 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. Your program should define at least one function that is called with the two input-file streams and the output-file stream as three arguments. The list of numbers are not necessary of the same length. Aske the user for each file name and est if the file exit. Show the cont te a program that merges the numbers in two files and writes all the numbers into a third fle tent of all three files on a screen Sample input file 1: 500 Sample input file 2: 101 Sample output file: 101 500 Sample output screen

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!