Question: Please code in c++, explain what the code does using comments. I have provided skeleton codes for cpp and h files. Thanks ite a tunction

Please code in c++, explain what the code does using comments. I have provided skeleton codes for cpp and h files. Thanks
ite a tunction ta reverse an array ot integers starting from a given start index and a given end ndex Note, the end index is inclusive. Please add your onde to problem1.h and prablem1.cpp, as provided Hunction prototypc: vold reverseArray(int[],int,int): urite your code here int[] a-(1,2,3); reversearray a, , 2): //The content of a should be 3,2,1) nt[] a- (1,2,3); rever searray(a, e, 1); //The content of a should be 2,1,3) void reversedrray (intl int, int) Write a function that performs a given number of right circular rotations each performed from index L to index R and perified as an input parameter and returns the value at the given index of the array afrer all mtations have heen performed. Please add your code to problem2.h and problem2.cpp as provided. ranges[]-{ index 1 (0, 2}, {e, 3} } Output3 Fxplanat ion :Atter tirst given ratat ionn ta, 7} rite your code hers 5 arr ( 1, 2, 4, 5) 5 lines s)97 Byte Atter all rotatiens we have elenent 3 at given index 1 int rindrierert(int [l, int [] [2], int, nt); roblem Given a matrix, clockwise-rotate elements in it. Please add the code to problem3.h and problem3.cpp, provided. Iniput rite vour code nere Fo 4*4 matrix Input 9 10 11 12 13 14 15 16 #define MAX les 5 #endi output: 9 1 61 13 11 78 14 15 16 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
