/****************************************************************************** Guessing game: This program will generate a random number n1 that computer is "thinking of" and prompt the user to input a guessed integer n. It then guides the user to guess a smaller or larger number. If the user get the correct number n1 before 10 trials, then the user "wins", the computer "wins" otherwise. The process repeats until there is a winner. 12 Nov 07 By Ida Pu, Usama Khan, Remigijus Raisys, Toby Ho, William Oakley ********************************************************************************/ import java.util.Scanner; import java.util.Random; public class guessing2{ public static void main(String args []) { Scanner keyboard = new Scanner(System.in); Random r= new Random(); int n1=1+r.nextInt(100); System.out.println("Please input a number that I am thinking of"); int n = keyboard.nextInt(); int counter=0; while ((n1!=n) && (counter<=10)) { if (n1