Data & File Structures

Exercise 1: Write a function template midElement that takes an array A and its dimension N and returns the middle element of the array. In the main function, call the function template midElement to 1) an integer array of integers with 4 elements 2) An array of doubles with 5 elements and 3) an array of characters which dimension is entered by the user


Exercise 2:

You have a situation in which you have 2 lists List1, and List2 with length L1

and L2 implemented as arrays. Write two member functions MergeEven that

will merge the even elements from both lists into one list EvenList and

MergeOdd that merges the odd elements from both lists into a list OddList.

Buy plagiarism free, original and professional custom paper online now at a cheaper price. Submit your order proudly with us

Essay Hope