I need some help please with an assignment due tomorrow. Hey I'm kinda new a C++. I have an assignment due tomorrow... and I don't even know how to start. Could someone please help. here is my assignment.
Write a program that counts how many even and odd integers respectively in the input data file,
hw4dataf11.txt
Note:
1. Download hw4dataf11.txt to your local computer.
2. Use file I/O to read the integers from the file. If the data file is saved in your project folder, only
the file name is needed when you declare an ifstream variable, otherwise, a path to the file is
required.
3. Suppose the ifstream variable is input, then use while(!input.eof()) for testing whether the end
of file is reached.
1. This is hardly enough effort on your part for us to give you an sort of assistance.
2. The syntax of your IF statements are way out of whack.
3. What do you suppose you'll need to do to read in the numbers? You'll need a loop of some kind. And you'll need to have somewhere to store the data.
4. We are not a homework service. If you aren't willing to put in the effort to try and solve the problem yourself, then do not post here asking us to solve the problem for you.