@@ -0,0 +1,1525 @@
+import java.util.*;%0A%0Apublic class HiLoLimitedTries %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        Scanner keyboard = new Scanner(System.in);%0A        Random rand = new Random();%0A        int number = rand.nextInt(100)+1;%0A        int tries =0;%0A%0A%0A        System.out.print(%22I have chose a number between 1 and 100. Try to guess it.%22 +%0A                %22%5Cr%5CnYour guess: %22);%0A        int guess = keyboard.nextInt();%0A        ++tries;%0A        if (guess == number)%7B%0A            System.out.print(%22That's right! You're a good guesser.%22 +%0A                    %22%5Cr%5CnIt only took you %22+tries+%22. tries%22);%0A        %7Delse%7B%0A            while (guess!=number && tries %3C 8)%7B%0A                if (tries == 7)%7B%0A                    System.out.print(%22Sorry, you didn't guess it in 7 tries.  You lose.%22);%0A                    break;%0A                %7D%0A                if (guess%3Enumber) %7B%0A                    System.out.print(%22Sorry that guess was too high.%22 +%0A                            %22%5Cr%5CnYour guess: %22);%0A                    guess = keyboard.nextInt();%0A                    ++tries;%0A                %7Delse if(guess%3Cnumber)%7B%0A                    System.out.print(%22Sorry that guess was too low.%22 +%0A                            %22%5Cr%5CnYour guess: %22);%0A                    guess = keyboard.nextInt();%0A                    ++tries;%0A                %7D%0A%0A                if (guess == number && tries %3C 8)%7B%0A                    System.out.print(%22You guessed it!  What are the odds?!?%22);%0A                    break;%0A                %7D%0A            %7D%0A%0A        %7D%0A    %7D%0A%7D%0A

Create HiLoLimitedTries.java