I dont know how to write it..
Type: Posts; User: brox
I dont know how to write it..
I know how to imagine it. But I dont have idea how to write it. I know..there is values top and first but I dont know how to use them in code ? How to compute middle value?
please can you write me code for range 1 - 20 ? because i can do it same as i wrote for range 1-100 but it will be just
package project;
import java.util.Scanner;
public class Game {...
oh sorry I didnt know that you mean post
i still thinking about it... so .. if userīs answer is "lesser" the only thing i change is "last(50)" wil be "last(25)" right ?
i working in Eclipse so i think i dont need that tags :)
my code:
...
yes i have it.
i will try to do it for right side of axis.
--- Update ---
oh god... its really hard for me... its so many lines... i have only this and i am lost in it..
System.out.print("is...
i tried to imagine it like a axis
|----|----|
the middle "|" is 50.
if userīs answer is "is not greater than 50" the axis will be
|--|-----|
after this, program will ask "its your number...
so.. i made 3 variables first,last and top
i ask user System.out.print("is your number lesser than " +last+ "?");
now userīs answer is no.
so.. now i will replace last(50) with 25 ?
edit:
now i...
wow.
It is still hard for me..
i dont understand the principle of this.. please can you write me something.. more?
thank you
Hello,
i have some troubles with my homework... i need to make quessing game...
i think random number 1-100 and program will queesing this number and asking me for question and i will reply only...