Introduction to mathematics for computer science - learn by practice and share
number base photo - day threeWelcome to day three!I hope you all doing fine and Right. me also. In previous tutorial we have learned that, what is number base, what is decimal and binary number, I we have learned how to convert between binary to decimal number. Today, I will post some question, and yeah answer too, okay let's start with that. ❓ 1. Describe one way of converting decimal numbers to binary numbers. Answer: Repeatedly divide the decimal number by 2, carefully noting the remainder each time. The binary number is formed by writing the remainders in reverse order. ❓ 2. What number is the binary system based upon? Answer: Based on 2. 0 & 1. ❓ 3. How many different digits occur in the binary system? Answer: 2 different digits occur. they are 0 & 1. ❓ 1. Convert the following decimal numbers to binary numbers: (a) 19 (b) 36 (c) 100 (d) 796 (e) 5000. Answer of (a):
To convert to binary, the decimal number 19 is repeatedly divided by 2. Each time we note the remainder. The binary number is formed by writing the remainders in reverse order: Remainder
Reading the remainders from bottom to
top: 1910 = 100112. Answer of (b), (c), (d), (e) can be done by following method of (a). This is your home work! ❓ 2. Convert the following binary numbers to decimal numbers: (a) 111 (b) 10101 (c) 111001 (d) 1110001 (e) 11111111. Answer of (a): Please see this post Introduction to mathematics for computer science - learn by practice and share part two, and take a look in it. |
So, 1112 = 1(22) + 1(21)+ 1(20)
It seems look a bit hard, but I think if you can read it properly, definitely you'll find it easy!
= 1*2 + 1*1
= 2+1
= 3
Comments
Post a Comment
Wow nice post!