package codingbat;


// You and your date are trying to get a table at a restaurant. The parameter "you" is the stylishness of your clothes, in the range 0..10, and "date" is the stylishness of your date's clothes. The result getting the table is encoded as an int value with 0=no, 1=maybe, 2=yes. If either of you is very stylish, 8 or more, then the result is 2 (yes). With the exception that if either of you has style of 2 or less, then the result is 0 (no). Otherwise the result is 1 (maybe).

public class Testing {

  public static void main(String[] args) {

    Testing test = new Testing();

    System.out.println(">" + test.dateFashion(3, 2) + "<");
    System.out.println(">" + test.dateFashion(3, 2) + "<");
    System.out.println(">" + test.dateFashion(45, 2) + "<");
    System.out.println(">" + test.dateFashion(3, 2) + "<");
    System.out.println(">" + test.dateFashion(3, 2) + "<");
  }

  public int dateFashion(int you, int date) {

    if(you <=2 || date <=2) {
      return 0;
    }
    else if(you >=8 || date >=8) {
      return 2;
    }

    else {
      return 1;
    }
  }
}

@@ -633,265 +633,20 @@
 est.
-dateFashion(3, 2) + %22%3C%22);%0A    System.out.println(%22%3E%22 + test.dateFashion(3, 2) + %22%3C%22);%0A    System.out.println(%22%3E%22 + test.dateFashion(45, 2) + %22%3C%22);%0A    System.out.println(%22%3E%22 + test.dateFashion(3, 2) + %22%3C%22);%0A    System.out.println(%22%3E%22 + test.dateFashion(3, 2
+modulo(8, 10
 ) + 
@@ -673,76 +673,35 @@
 int 
-dateFashion
+modulo
 (int 
-you
+a
 , int 
-date) %7B%0A%0A    if(you %3C=2 %7C%7C date %3C=2
+b
 ) %7B%0A    
   re
@@ -700,116 +700,19 @@
     
-  
 return 
-0;%0A    %7D%0A    else if(you %3E=8 %7C%7C date %3E=8) %7B%0A      return 2;%0A    %7D%0A%0A    else %7B%0A      return 1;%0A    %7D
+a%25b;
 %0A  %7D

test modulo