Crack the code?
_ _ _ (code to unlock)
A numeric lock has a 3 digit key
Hint
1. 6 8 2 - one number is correct and well placed
2. 6 1 4 - one number is correct but wrongly placed
3. 2 0 6 - two numbers are correct but wrongly placed
4. 7 3 8 - nothing is correct
5. 7 8 0 - one number is correct but wrongly placed
Answers
Answer:
042
Step-by-step explanation:
second statement says one number is correct but wrongly placed .
so it contradicts the first condition.
therefore 6 is out
from 3 rd condition since 6 is not the correct number we got 2 and 0 which are both correct but wrongly placed
first condition says that one number is correct and well placed .it means ones digit is 2
fifth condition says one number is correct but wrongly placed and fourth condition says no one is correct which means neither 7 nor 8 are correct.
from 3rd and 5 th we get the position of 0 as 100th digit.
form 2nd condition we know that either 1 is correct or 4 is correct.
since the ones place and 100th place are already taken by 2 and 0 .
so we are left with 1
so the answer is 042.
hope it helps you
code is 042.
Step-by-step explanation:
1. 6 8 2 - one number is correct and well placed
Rules out 6. It is either 2 or 8.
From hint 4, we rule out 8. So it is 2 that is correct and well placed.
2. 6 1 4 - one number is correct but wrongly placed
Rules out 6, it can be 1 or 4 that is wrongly placed.
3. 2 0 6 - two numbers are correct but wrongly placed
We know one number is 2. The other should be 0 or 6.
From 5, we know that it is 0 that is wrongly placed.
4. 7 3 8 - nothing is correct
5. 7 8 0 - one number is correct but wrongly placed
From 4, we can rule out 7 and 8. So it is 0 that is wrongly placed.
0 should be first because it is wrongly placed in middle and last position.
2 is in the last position.
So the middle is gotten from hint 2, the wrongly placed number for middle position is 4.
Finally, the code is 042.