@@ -0,0 +1,476 @@
+import java.util.Scanner;%0A%0Apublic class even_or_odd %7B%0A%09public static void main(String%5B%5D args) %7B%0A%09%09// directions%0A%09%09Scanner s = new Scanner(System.in);%0A%09%09System.out.println(%22Enter a number to determine if it is even or odd: %22);%0A%09%09%0A%09%09// collect user input%0A%09%09int number = s.nextInt();%0A%09%09%0A%09%09// determine and print result%0A%09%09if(number%252 == 0) %7B%0A%09%09%09System.out.println(%22The number you entered is even.%22);%0A%09%09%7D else %7B%0A%09%09%09System.out.println(%22The number you entered is odd.%22);%0A%09%09%7D%09%0A%09%0A%09%7D%0A%7D%0A

determines if a number is even or odd