Easier homework this week! Lots of bonuses to help your overall homework grade! You MUST show all work and all computations to get credit.
Convert the following numbers from base 2 to decimal.
Convert the following base 10 numbers to base 2
(Bonus +5 each) Convert the following as indicated
Perform the indicated operations, keeping your answer in base 2.
Here’s a crazy fact about bit strings and binary numbers that might blow your mind: every computer program is nothing more than a string of bits, like 1011010101010100100101010101111001010100100010100010100. Every bit string is a binary number that can be converted to a decimal number. Therefore, every program that has been or ever will be written is just a number! And since every decimal number can be converted to a bit string, every number (technically) represents a computer program. So, one could legitimately ask “I wonder what computer program 1,387,469,213 does…”
(Computability-Theoretic disclaimer on the above fact: context/encoding is important to determine what the 1,387,469,213th program does. For instance, different operating systems (OS’s) might interpret the binary conversion of 1,387,469,213 differently, and so 1,387,469,213 might mean different things to different OS’s. So not only does each natural number represent a program, it actually represents many different objects, depending on the “context” in which the number is used.)