A void function named Shift that takes an int array parameter and two int parameters named data and shft respectively. Given that n represents the size of data, the function shifts the elements of data shft units to the right. For instance, if data = [2, 3, 5, 6, 1] and shft = 2 at the beginning of the function call, then data = [6, 1, 2, 3, 5] after the function call completes.
A double function named Range that takes a double array parameter and an int parameter. Given that the int parameter represents the size of the double array parameter, the function returns the difference of the maximum value from the minimum value of the array.