7 Replies
Alphonso Hendricks

@Christian

taking three number cards to make it simpler. Card A, B and C.

If your number is not on (read zero) card A but it is on (read one) card B and not on (read 0) Card C - you have generated the input 010 - which in binary land equates to the number 2. This means your age is two.

another example  

If your number is on (read one) card A but it is not on (read zero) card B and on (read 1) Card C - you have generated the input 101 - which in binary land equates to the number 5. This means your age is five.

In summary:

000 in binary = digit zero 

001 in binary = digit one

010 in binary = digit two 

011 in binary = digit three 

100 in binary = digit four

101 in binary = digit five 

110 in binary = digit six 

111 in binary = digit seven 

hope this helps a bit

Linda Lorenzetti

Great job Sanjib,

The wording in the instructions confused me a little at first.  I thought it was asking if your age appeared along the sides of the list.  Instead of saying "Does your age appear in the numbers given side  ways?" it would be less confusing to say "Does your age appear on the list of numbers on the right?"

Your programming (variables/triggers) skills are impressive!

Linda

sanjib nanda

@Linda

sure,  i will rectify this problem, when ever i get access to SL again. My trial version is off, but i have discovered it to be potential software where you can take it to any next level with triggers and states.

right now, i have to complete my some of android projects and an important book to be completed.

however, i will be there with this wonderful world/community when ever i find times.

Prof Nanda