
Elementary Math Fractions, Percentages, Word Problems, Equations, Inequations, Factorization, Expansion 
 LinkBack  Thread Tools  Display Modes 
June 16th, 2018, 04:34 AM  #1 
Senior Member Joined: Aug 2014 From: India Posts: 310 Thanks: 1  How to solve this coding problem?
In a certain code @ represents 0, # represents 1, @ represents 2 and ## represents 3 and so on. Which of the following represents 13 in this code language? a) #@#@ b) ##@@ c) ###@ d) ##@# e) ### 1 means # and ## means 3, combining them. It looks ###. My answer is ###, but it is wrong. Right answer is option D. How so? 
June 16th, 2018, 04:46 AM  #2 
Member Joined: Aug 2017 From: India Posts: 45 Thanks: 2 
It seems to be simple binary representation ##@# > 1 1 0 1 (Binary) > 13(Decimal) 
June 16th, 2018, 04:58 AM  #3 
Senior Member Joined: Aug 2014 From: India Posts: 310 Thanks: 1  
June 16th, 2018, 05:04 AM  #4 
Member Joined: Aug 2017 From: India Posts: 45 Thanks: 2 
Can you please search for Binary to Decimal conversion.

June 16th, 2018, 05:19 AM  #5 
Senior Member Joined: Aug 2014 From: India Posts: 310 Thanks: 1  
June 16th, 2018, 05:33 AM  #6 
Member Joined: Aug 2017 From: India Posts: 45 Thanks: 2 
May be experience.

June 16th, 2018, 07:54 AM  #7 
Global Moderator Joined: Dec 2006 Posts: 19,528 Thanks: 1750  
June 16th, 2018, 03:04 PM  #8 
Senior Member Joined: Sep 2016 From: USA Posts: 443 Thanks: 254 Math Focus: Dynamical systems, analytic function theory, numerics  
June 20th, 2018, 05:19 AM  #9 
Senior Member Joined: Apr 2014 From: Glasgow Posts: 2,127 Thanks: 716 Math Focus: Physics, mathematical modelling, numerical and computational solutions 
Decimal system > each digit represents powers of ten (read right to left) e.g. look at the decimal number 257 $\displaystyle 257 = 7 \times 10^0 + 5 \times 10^1 + 2 \times 10^2$ Binary system > each digit represents powers of two (read right to left) $\displaystyle 1101 = 1 \times 2^0 + 0 \times 2^1 + 1 \times 2^2 + 1 \times 2^3$ We can calculate this using decimal notation: $\displaystyle 1 \times 2^0 + 0 \times 2^1 + 1 \times 2^2 + 1 \times 2^3 = 1 + 4 + 8 = 13$ There are websites which have very good ways of explaining binary and decimal number systems. 

Tags 
coding, problem, solve 
Thread Tools  
Display Modes  

Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
which coding is this?  integration  Computer Science  2  April 20th, 2018 12:40 AM 
Coding numbers  alinagoo  Math  1  November 25th, 2014 08:11 AM 
Lottery Problem, coding in C++  aegiziano1  Advanced Statistics  1  December 18th, 2013 09:09 PM 
Coding Theory  NakedTruth  Computer Science  0  March 17th, 2011 03:19 PM 
Coding Theory  NakedTruth  Abstract Algebra  0  December 31st, 1969 04:00 PM 