Calculating sum of all Ten's in an Array

 import java.util.*;


public class CheckSumofTens {

public static void main(String args[]) {
int my_arr[] = { 10, 11, 12, 13, 14, 10, 20, 30, 10 };

int sum = 0;
int fixed_sum = 30;
int sum_value = 10;
for (int i = 0; i < my_arr.length; i++) {
if (my_arr[i] == sum_value) {
sum = sum + sum_value;
}
}
if (sum == fixed_sum) {
System.out.println("True");
} else {
System.out.println("False");
}
}
}

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