Answered step by step
Verified Expert Solution
Question
1 Approved Answer
use c++ to write the program Extra Write a program that merges the numbers in two files and writes all the numbers into a third
use c++ to write the program
Extra Write a program that merges the numbers in two files and writes all the numbers into a third file Credit - Merge Sorted Numbers (25 points) kes 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 test if the file exit. Show the content 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
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