Images & Arrays
L et’s get started with this homework assignments-threefunctions that process arrays. Upload the starter code to yourworkspace, and add your name and
student ID as normal. Here are the functions:
1. alternatingSum() uses an accumulation algorithm to computethe alternating sum of all elements in an array of int. It ispassed an array and its length and returns the sum.
The minMax() function uses extreme values along with pointers toreturn a pair of pointers to the largest and smallest element in anarray.
The translate() function uses pointers and arrays, to rotate thepixels in an array in both the horizontal and verticaldimension.
1: Alternating Sum
An
PayPal Gateway not configured
PayPal Gateway not configured