In this exercise, you read the numbers contained in a a sequential access file, and then write only the the even numbers to a new sequential access file

A. Open the ch13AppE04 solution( Ch13AppE04 solution. Sln) file, which is contained in thecpp5\chap13\ch13AppE04 solution folder. Also open the numbers.txt file contained in the Cpp5\chap13\ch13AppE04 solution\ch13AppE04project folder. The sequential access file contains one numericfield. Close the numbers.txt window.

B. Code the program so that it reads the numbers from the numbers.txt file. The program should write only the even numbers to a new sequential file named the updated sequential file evennumbers.txt.

C. Save and then build thesolution. Execute the program. Close the command prompt window, theopen the evenNumbers.txt file. Each number in the file should beone greater than its corresponding number in the numbers.txt file.Close the evenNumbers.txt window. When the program is workingcorrectly, use the file menu to close the solution.

Want an answer?