Create a file “Data.txt” that consists of numbers from 1 to 100.Write a C++ program that reads the numbers from “Data.txt”,determines between odd and even numbers and prints the even and oddnumbers using 2 columns in the file “DataOut.txt”. Also pleasewrite explanatory comments next to or on each line of code. Alsomake sure the program works in xcode. Thank you in advance.
Format your output using setw as:-
Odd Even
1 2
3 4
… …
99 100
Expert Answer
An answer will be send to you shortly. . . . .