@@ -0,0 +1,1183 @@
+package codingbat.logic1;%0A%0A//You are driving a little too fast, and a police officer stops you.%0A//Write code to compute the result, encoded as an int value: 0=no ticket, 1=small ticket, 2=big ticket.%0A//If speed is 60 or less, the result is 0. If speed is between 61 and 80 inclusive, the result is 1. %0A//If speed is 81 or more, the result is 2. %0A//Unless it is your birthday -- on that day, your speed can be 5 higher in all cases. %0A//%0A//caughtSpeeding(65, true) = 0%0A//caughtSpeeding(60, false) = 0%0A//caughtSpeeding(65, false) = 1%0A%0Apublic class CaughtSpeedingTest %7B%0A%0A  public static void main(String%5B%5D args) %7B%0A    CaughtSpeedingTest test = new CaughtSpeedingTest();%0A%0A    System.out.println(%22%3E%22 + test.caughtSpeeding(65, true) + %22%3C%22);%0A    System.out.println(%22%3E%22 + test.caughtSpeeding(60, false) + %22%3C%22);%0A    System.out.println(%22%3E%22 + test.caughtSpeeding(65, false) + %22%3C%22);%0A  %7D%0A%0A  public int caughtSpeeding(int speed, boolean isBirthday) %7B%0A    int sLimit = 60;%0A    int bLimit = 80;%0A    %0A    if (isBirthday) %7B%0A      sLimit += 5;%0A      bLimit += 5;%0A    %7D%0A    %0A    if (speed %3C= sLimit) %7B%0A      return 0;%0A    %7D%0A    else if (speed %3C= bLimit) %7B%0A      return 1;%0A    %7D%0A    %0A    return 2;%0A  %7D%0A%0A%7D%0A

add caughtSpeeding task