Calculating average of an array

 import java.util.*;


public class PrintArrAverage{

public static void main(String args[]){
int arr[] = new int[5];
Scanner sc = new Scanner(System.in);
int sum =0;
for(int i=0; i<5;i++){
arr[i]= sc.nextInt();
sum = sum+arr[i];
}

System.out.println("The average of entered array is : "+sum/arr.length);


}
}

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...