السلام عليكم
المشكلة عندي مو عارف كيف بدي أستخدم طريقة ال binary search و أنا سأجل الكمبيوتر يخمن رقم و أنا سأفرض رقم .غير الرقم النصفي الذي هو أساس طرقة ال binary
Write an applet that plays “guess the number” game as follows: your program
chooses the number to be guessed by selecting a random integer in the range 1 and 1000 the applet displays the prompt guess an number between 1 and 1000 next to a Jtextfield, the player types a first guess into the JtextField and press the enter key. If the player guess is incorrect , your program should display Too hiegh .Tray again or To low.Tray again .in the status bar to help the player “zero in ” on correct answer and should clear the JtextField so the user can enter another guess. When the user enter the correct answer ,display congratulation. you guessed the number in the status bar [hint: use binary search]
