Please design, write the code in C++ and create the requisite submission files for the following problem:
A menu-driven program that offers the user 5 options as follows:
Menu:
1. Display array
2. Add up all elements in the array and display that number.
3. Add 1 to each element in the array.
4. Swap the values in row one with the values in row three.
5. Exit
In main(), declare and initialize a 2-dimensional array that contains 5 x 5 elements. Initialize the elements to:
2,8,6,16,10
-1, -2, -3, -4, -5
9,6,9,20,27
49, 63, 89, 12, 17
-900, -800, 800, 600, 200
Display the menu and then execute the user's choice. Keep displaying the menu (and executing the user's choice) until the user chooses Option 5. (See pseudocode in this lesson for design help.)
Execute the chosen menu option by passing the array to a specific function which will do the work (in other words, there will be 4 array processing functions and one exit function).
No global variables, although global constants are fine. Remember, you must pass the array to the functions and not do the work in main().
Properly document your code with header blocks for each function and internal comments.