Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a C++ program, which declares an array of ten (10) integers.This array is

ID: 3614375 • Letter: W

Question

Write a C++ program, which declares an array of ten (10) integers.This array is then passed to a function with the name“EvenTotal(…)”. The function“EvenTotal(…)” has followingdeclaration:

int EvenTotal (int * ptrArray, int Size);

This function is called from main function. It takes the address offirst array element and size of array as arguments, it then uses aloop structure to calculate the sum of all the even integers in thearray, the sum is then returned to main function, which then printsthis number on console. E.g.

For the array:

int array[10]= {1,2,3,4,5,6,7,8,9,10}

It will print the following output:

Sum of Even Numbers: 30

Explanation / Answer

please rate - thanks #include #include using namespace std; int EvenTotal (int * ptrArray, int Size); int main() {int array[10]= {1,2,3,4,5,6,7,8,9,10}; int Size=10; cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote