
Elementary Math Fractions, Percentages, Word Problems, Equations, Inequations, Factorization, Expansion 
 LinkBack  Thread Tools  Display Modes 
June 16th, 2018, 05:34 AM  #1 
Senior Member Joined: Aug 2014 From: India Posts: 341 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, 05:46 AM  #2 
Member Joined: Aug 2017 From: India Posts: 48 Thanks: 2 
It seems to be simple binary representation ##@# > 1 1 0 1 (Binary) > 13(Decimal) 
June 16th, 2018, 05:58 AM  #3 
Senior Member Joined: Aug 2014 From: India Posts: 341 Thanks: 1  
June 16th, 2018, 06:04 AM  #4 
Member Joined: Aug 2017 From: India Posts: 48 Thanks: 2 
Can you please search for Binary to Decimal conversion.

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

June 16th, 2018, 08:54 AM  #7 
Global Moderator Joined: Dec 2006 Posts: 19,865 Thanks: 1833  
June 16th, 2018, 04:04 PM  #8 
Senior Member Joined: Sep 2016 From: USA Posts: 499 Thanks: 277 Math Focus: Dynamical systems, analytic function theory, numerics  
June 20th, 2018, 06:19 AM  #9 
Senior Member Joined: Apr 2014 From: Glasgow Posts: 2,132 Thanks: 717 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 01:40 AM 
Coding numbers  alinagoo  Math  1  November 25th, 2014 09:11 AM 
Lottery Problem, coding in C++  aegiziano1  Advanced Statistics  1  December 18th, 2013 10:09 PM 
Coding Theory  NakedTruth  Computer Science  0  March 17th, 2011 04:19 PM 
Coding Theory  NakedTruth  Abstract Algebra  0  December 31st, 1969 04:00 PM 