Counting total no of even and odd element of an Array

 import java.util.*;


public class EvenOddInArray{
public static void main(String args []){
int my_arr[]={1,3,4,6,5,8,9,19,21,23,24,34};
int even = 0;
int odd =0;
for(int i=0;i<my_arr.length;i++){
if(my_arr[i]%2==0){
even = even+1;
} else{
odd = odd+1;
}
}
System.out.println("Total count of even element in the given array is : "+"\n"+even);
System.out.println("Total count of Odd element in the given array is : "+"\n"+odd);
}
}

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