Question: 1 . Prompt the user to identify a file containing integer values, one value in each record. 2 . Create a vector that can be
Prompt the user to identify a file containing integer values, one value in each
record.
Create a vector that can be used to store integer int values.
Read the values from the file and store them in the vector.
Close the file.
Display the number of elements in the vector as well as all the odd values in
the vector.
Remove the elements in the vector that contain odd values.
Display the number of elements that were deleted.
Display the number of elements in the vector as well as all the even values in
the vector.
Calculate and display the total of all values remaining in the vector
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
