Print the sum of all elements of an Array

 import java.util.Arrays;


public class AddArray{
public static void main(String args[]){
int arr[] = {1,4,6,5,3,7,8};
int sum=0;
System.out.println("The entered array is : "+ Arrays.toString((arr)));
for(int i=0;i<arr.length;i++){
sum = sum+arr[i];
}
System.out.println("The sum of entered array is : "+ sum);
}
}

Google Script for Data Entry Form in Google Spreadsheet

// function to validate the entry made by user in user form function validateEntry (){ // declare a variable and referernece of active goog...