Question: please write c++ program . Suppose you have a data file named input.txt. There are 5 lines in the file and each line has a
Suppose you have a data file named input.txt. There are 5 lines in the file and each line has a positive integer. Write a program to read data from the file and count the number of even integers and the number of odd integers. Then write the two numbers to another file named output.txt. When TA grades your program, she will use her own input.txt so please make sure your program will still work even with a different input file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
