1. Write a range-basedForloop to print out the sum of the values in the following array
1. Write a range-basedForloop to print out the sum of the values in the following array: float x[] ={
1.2,2.56,3.33,57.98,8.8,68.09,20.01,2.70};
2. Write a program that passes a float[8] array in such a way as to assure the values in the array are not changed.