guess the number; ur frnd uses an integer between 0 and hundred you have to find out the number by asking questions but your friend can only say yes or no what strategy with you
Answers
Let my friend choosing 73; then my questions maybe like this.
Q:- Does it lie in the first 50 numbers?
A:- No
Q:- Does it lie between 50 and 60?
A:- No
Q:- Does it lies between 60 and 70?
A:- No
Q:- Does it lie between 70 and 18?
A:- Yes[then my guess would be"it is a number from 70 to 80]
Q:- Is it an even number?
A:- No [my guess: it should be one of the numbers 71, 73, 75, 77 and 79]
Q:-Is it a prime number?
A:- Yes[my guess: it may be 71, 73 or 79]
Q:- Is it less than 75?
A:- Yes[my guess: it may be either 71 or 73]
Q:- Is it less than 72?
A:- No
Then the number is 73.
Therefore strategy is
Use number properties such as even, composite and prime to determine the number.
Step-by-step explanation:
Let my friend choosing 73; then my questions maybe like this.
Q:- Does it lie in the first 50 numbers?
A:- No
Q:- Does it lie between 50 and 60?
A:- No
Q:- Does it lies between 60 and 70?
A:- No
Q:- Does it lie between 70 and 18?
A:- Yes[then my guess would be"it is a number from 70 to 80]
Q:- Is it an even number?
A:- No [my guess: it should be one of the numbers 71, 73, 75, 77 and 79]
Q:-Is it a prime number?
A:- Yes[my guess: it may be 71, 73 or 79]
Q:- Is it less than 75?
A:- Yes[my guess: it may be either 71 or 73]
Q:- Is it less than 72?
A:- No
Then the number is 73.
Therefore strategy is