Question: C++ Open the attached.cpp file. Fill in the two missing functions where it says insert code here. Everything else has been written for you to

C++
C++ Open the attached.cpp file. Fill in the two missing functions where
it says insert code here. Everything else has been written for you
to test your functions. You may not change anything in the file
other than write the functions. Note: For testing purpose, I will have
different data in file numbers.txt. Expected Output: Data in file: 10 9

Open the attached.cpp file. Fill in the two missing functions where it says insert code here. Everything else has been written for you to test your functions. You may not change anything in the file other than write the functions. Note: For testing purpose, I will have different data in file numbers.txt. Expected Output: Data in file: 10 9 1 10 25 5 * 6 mm 92 1 3 8 Sum of all even numbers in list = 130 List after deleting even numbers: 9 1 25 5 7 3 1 3 Press any key to continue... /*This program is your final exan. All you need to do is to fill both the functions. 1) Find the sun of the even numbers in the list. Please insert code in the function called int suneven (int[], int) 2) Delete/Remove all even numbers in the list. Please insert code in the function called void delEven(int [], int k) Note: Even if I change the content of the input file, your program should still produce the correct output. */ Hinclude #include #include using namespace std; //constants const int CAP = 100; //function prototypes bool openFile(ifstrean &); void readData(ifstream &, int[], int &); void printData(const int[], int); int sunEven(int[], int); void delEven (int[], int k); 1/main Oint main() { ifstream inFile; int list(CAP), size = 0; int total = 0; if (!openFile( &: inFile)) { cout

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!