Calculating average using Method

 import java.util.*;


public class FindAverage {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
System.out.println("Enter the first number");
double x = sc.nextDouble();
System.out.println("Enter the Second number");
double y = sc.nextDouble();
System.out.println("Enter the Third number");
double z = sc.nextDouble();

System.out.println("The average of three no is : " + average(x, y, z));

}
//Defining Method
public static double average(double a, double b, double c) {
double avg = (a+b+c)/3;
return avg;
}
}

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