Answer:
Replace /* Your solution goes here*/ with the following
<em>void SwapArrayEnds(int sortArray [], int lent){
</em>
<em> int temp = sortArray[0];
</em>
<em> sortArray[0] = sortArray[lent-1];
</em>
<em> sortArray[lent-1] = temp;
</em>
<em>}
</em>
<em />
Explanation:
This defines the function SwapArrayEnds with two parameter (the array and the array length)
<em>void SwapArrayEnds(int sortArray [], int lent){
</em>
This declares an integer variable "temp" and initializes it with the first element of the array
<em> int temp = sortArray[0];
</em>
The next two lines swap the last element with the first
<em> sortArray[0] = sortArray[lent-1];
</em>
<em> sortArray[lent-1] = temp;
</em>
<em>}
</em>
<em />
<em>See attachment for full program</em>