Question: Create a C++ program named evenodd.cpp that reads in a text file containing numbers (separated by newline characters) and organizes them into two vectors, one

 Create a C++ program named evenodd.cpp that reads in a text

Create a C++ program named evenodd.cpp that reads in a text file containing numbers (separated by newline characters) and organizes them into two vectors, one containing even numbers, and the other containing odd numbers. The output of this program must print the elements of each vector and its size A sample text file and a sample run of the program is provided below: numbers.txt (input text file //sample execution Even numbers: 4, 6, 2,8 Even number count: 4 Odd numbers: 1, 3, 5, 9, 7 Odd number count: 5 Press any key to continue. .. The use of vectors and some of their member functions is a requirement for this lab: push backO pop back0 size0 emptyO

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!