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

please write c++ program .
 please write c++ program . Suppose you have a data file

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

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!