1. Add the following binary number in 8-bit. Rewrite each problem in decimal notation to check you work. 10110101112 + 011001002
2. Find the decimal equivalent for the following binary numbers. 10010102/100000002
3. Find the decimal equivalent for the following binary numbers. 0.10112
4. Find the binary equivalent the following decimal numbers. 8.75
Binary Number System:
It has base '2' i.e it has two base numbers 0 and 1 these base numbers are called "Bits".
In this number system, group of 4 bits is known as "Nibble" and group of eight bits is known as "Byte".
Computers use the binary system for implementation any digital circuit because It is very simple to design any hardware which needs only to detect two states, on and off .
Decimal Number System
It has 'base 10' i.e it has 10 distinct symbols(0,1,2,3,4,5,6,7,8,9)
Converting from the binary to the decimal system
Procedure: 1. Determine all of the place values where 1 occurs
2. find the sum of the those values.
EX: 10101 = (1 × 24) + (0 × 23) + (1 × 22) + (0 × 21) + (1 × 20) = 21
| 24 | 23 | 22 | 21 | 20 |
| 1 | 0 | 1 | 0 | 1 |
| 16 | 0 | 4 | 0 | 1 |
Hence: 16 + 4 + 1 = 21.
Binary Addition
Binary addition follows the same rules as addition in the decimal system only difference is that carrying a 1 over when the values added equal 10, carry over occurs when the result of addition equals 2.
Note that in the binary system:
1 + 1 +1 = 1, carry over the 1, i.e. 11
EX:
| 10 | 11 | 11 | 0 | 1 | ||
| + | 1 | 0 | 1 | 1 | 0 | |
| = | 1 | 0 | 0 | 1 | 1 | 1 |
1. Add the following binary in 8 bit
Given Numbers are: 10110101112 + 011001002
| carry bit | 1 | 1 | 1 | |||||||
| 1 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 1 | 1 | |
| 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | |||
| + | ||||||||||
| Result : | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 1 |
Sum : 1100111011
Decimal value of (11001110112) is
= (1 × 29)+(1 × 28)+(0 × 27)+(0 × 26)+(1 × 25)+(1 × 24) + (1 × 23) + (0 × 22) + (1 × 21) + (1 × 20)
= 512+256+0+0+32+16+8+0+2+1
=827
Rewrite each problem in decimal to check your work.
10110101112 + 011001002
convert the given binary value into decimal
10110101112 = (1 × 29)+(0 × 28)+(1 × 27)+(1 × 26)+(0 × 25)+(1 × 24) + (0 × 23) + (1 × 22) + (1 × 21) + (1 × 20)
= 512+0+128+64+0+16+0+4+2+1
=727
011001002 =(0 × 27)+(1 × 26)+(1 × 25)+(0 × 24) + (0 × 23) + (1 × 22) + (0× 21) + (0 × 20)
= 0+64+32+0+0+4+0+0
= 100
Addition of two decimal value 727+100 = 827
Both decimal and binary results are same
2. Find the decimal equivalent for the following binary numbers 10010102/100000002
First here we divided that given binary numbers 10010102/100000002 using binary division method and then i converted that result into a decimal equivalent.
Binary Division
Binary division is similar to decimal division method
Each step of binary division having these four sub steps:
Divide: Divide the working portion of the dividend by the divisor.
Multiply: Multiply the quotient (a single digit) by the divisor.
Subtract: Subtract the product from the working portion of the dividend.
Bring down: Copy down the next digit of the dividend to form the new working portion.
In that given problem Dividend : 10010102
Divisor : 100000002
In a given value the Dividend have only 7 digits binary number,
so make it to 8 digit number we can add 0 in the Most significant
position, then it becomes 010010102.
|
10000000) 01001010 ( 0 (quotient value) 00000000 ______________ 01001010 (Remainder value) |
Decimal equivalent of 010010102 is = 74
100000002 is = 128
74/128 = 0 (Remainder is 74)
3. Find the decimal equivalent for the following binary numbers. 0.10112
0.1011 = (0 × 20) . (1 × 2-1) + (0 × 2-2) + (1 × 2-3) + (1× 2-4)
= 0 . (1 * 0.5) + 0 + (1 * 0.125) + (1 * 0.0625)
= 0.6875
4. Find the binary Equivalent the following decimal numbers 8.75
Steps to convert the decimal into binary number
In the given problem we have two part one is integral part and fractional part.
Now consider the integral part 8 and do the following steps
| Divide by 2 | Quotient | Remainder |
| 8/2 | 4 | 0 |
| 4/2 | 2 | 0 |
| 2/2 | 1 | 0 |
| 1/2 | 0 | 1 |
Write the remainder in reverse order to get the Result (8)10: 10002
Now the fractional part 0.75 and do the following steps
Multiply the fractional part repeatedly by 2, keeping track of each integer part of the results, until we get a fractional part that is equal to zero:
multiplying = integer + fractional part
0.75 × 2 = 1 + 0.5
0.5 × 2 = 1 + 0
(0.75)10 = (11)2
(8.75)10 = (1000.11)2
1. Add the following binary number in 8-bit. Rewrite each problem in decimal notation to check...
1. What decimal number is represented by the following excess 8 notation? 2. Convert 1111 from excess eight representation to its equivalent base ten binary form 3. With two's complement signed binary representation, what is the range of numbers as written in binary and in decimal for an eight-bit cell? (lowest to highest) 4. Convert -7 from decimal to binary, assuming seven-bit two’s complement binary representation 5. Convert 111 1010 from binary to decimal assuming seven bit two's complement binary...
1. What is the largest decimal number we can represent with a 16 bit two's complement number? 2. Convert the following signed binary numbers to decimals. 11001 010011 1110100 1100111 3. Convert the following decimal numbers to 6-bit two's complement binary numbers and add them. Note if there is an overflow. 7 + 13 Two's complement/binary number for 7: Two's complement/binary number for 13: Sum: Overflow? 4. Convert the following decimal numbers to 6-bit two's complement binary numbers...
Convert the following decimal numbers into 8-bit binary: 214 _____________ Convert the following 8-bit binary numbers into decimal: 10110111 ____________________ Convert the following decimal numbers into equivalent hexadecimal numbers: 253 ____________________ Convert the following hexadecimal numbers into equivalent decimal numbers: AE0 ____________________ Convert the following IP addresses into binary. Do not forget to put the period, or dot, between each group of eight binary digits: 206.79.125.83 _____________________________________________________________________ For the following exercises, come up with the subnet address, broadcast address, the...
ord Paragrapth Styles 1 Perform the following conversions Convert 51 (decimal) to binary and to hex a b. Convert 0xDI (hexadecimal) to binary and to decimal c. Convert Ob11001001 (binary) to hex and to decimal 2. Find the 2's complement of the following 4 bit numbers a 1101 b 0101 3. Perform the following 4 bit unsigned operations. For each, indicate the 4-bet result and the carry bit, and indicate if the answer is correct or not a. 5+8 b....
C++
Convert a Number from Binary to Decimal using a stack: The language of a computer is a sequence of Os and 1s. The numbering system we use is called the decimal system, or base 10 system. The numbering system that the computer uses is called the binary system, or base 2 system. The purpose of this exercise is to write a function to convert a string representing a binary number from base 2 to base 10. To convert a...
Convert the following decimal numbers to 6-bit two's complement binary number and add them. Keep result in binary form. Enter yes/no for any overflows (overflows only, not carried bits). 16 + 9 .............. Overflow?................... 27 + 31 .............. Overflow?....................... (-4) + 19 .............. Overflow? ........................ 3 + (-32) ............ Overflow? ........................ (-16) + (-9) ............... Overflow? .............................. (-27) + (-31) ................ Overflow? ...........................................
6. An 8-bit shift register has the binary equivalent of the decimal number 46 stored in it What are the base-10 equivalent contents of the register after the following operations have been performed? For each case, assume the same initial state given. [15pts] (a) SHR 1 (b) SHL 1 (c) SHR 2 (d) ROR 2
6. An 8-bit shift register has the binary equivalent of the decimal number 46 stored in it What are the base-10 equivalent contents of the...
1. Convert the binary number 10101102 to octal, decimal, and hexadecimal numbers. 2. Convert the decimal number 236.7510 to binary,octal, and hexadecimal numbers. 3. Add the following two binary numbers: 100111102 and 011110112. Remember to show any carries that are generated along the way. 4. Repeat the previous question, but this time subtract the second binary number from the first. Remember to show any borrows that are required along the way. 5. Determine the encoding of the decimal number 28610...
1. a) Perform the following binary subtractions of unsigned binary numbers. Convert your answer to decimal. i) 101001012 - 01001001, ii) 110110102 - 100100112 b) Repeat the calculations above but for when the binary numbers are in two's complement form. Comment on the results of the two methods used, noting and discrepancies. 2. Find the sums of the following unsigned hexadecimal numbers. Indicate whether or not the sum overflows an equivalent 8-bit binary result. a) 1116 +2216 b) 1716 +3516...
1. 2. Find the decimal value of the following 8-bit numbers for (i) un-signed and (ii) signed number. (a) 11010110, (b) 01011101 Express the following decimal numbers in 6-bit 2's complement representation: (a) -27, (b) 6, (c)-13, (d) -47 - 4. Convert decimal numbers 83 and 101 to 8-bit unsigned binary number. Find the sum and difference (with addition approach) of these two numbers.