0% found this document useful (0 votes)
123 views3 pages

Solution: Decimal To Binary

The document summarizes the steps to convert decimal numbers to binary and vice versa. It provides the conversions for the decimal numbers 4789 and -8735 as examples. It shows all the steps and bit placements for the conversions between the two number systems. It also provides a truth table to solve a given Boolean expression using logic gates such as AND, OR and XOR.

Uploaded by

MHumayunJamil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
123 views3 pages

Solution: Decimal To Binary

The document summarizes the steps to convert decimal numbers to binary and vice versa. It provides the conversions for the decimal numbers 4789 and -8735 as examples. It shows all the steps and bit placements for the conversions between the two number systems. It also provides a truth table to solve a given Boolean expression using logic gates such as AND, OR and XOR.

Uploaded by

MHumayunJamil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd

Q#1

Convert the following decimal numbers into equivalent binary numbers and then convert the binary
answer back into equivalent decimal. Show all the steps of conversions.

• 4789

• -8735

Solution

Convert the following decimal numbers into equivalent binary numbers and then convert the
binary answer back into equivalent decimal. Show all the steps of conversions.
• 4789
Solution Decimal to Binary
212 211 210 29 28 27 26 25 24 23 22 21 20
4096 2048 1024 512 256 128 64 32 16 8 4 2 1
1 0 0 1 0 1 0 1 1 0 1 0 1

4789= (1001010110101)2

Solution Binary to Decimal


212 211 210 29 28 27 26 25 24 23 22 21 20
4096 2048 1024 512 256 128 64 32 16 8 4 2 1
1 0 0 1 0 1 0 1 1 0 1 0 1
4096+512+128+32+16+4+1=4789
(1001010110101)2 =4789

B = 8735

Solution Decimal to Binary


• -8735

Sign 213 212 211 210 29 28 27 26 25 24 23 22 21 20


Bit
- 8192 4096 2048 1024 512 256 128 64 32 16 8 4 2 1
1 1 0 0 0 1 0 0 0 0 1 1 1 1 1

-8735= (110001000011111)2
Solution Binary to Decimal to
• -8735

Sign 213 212 211 210 29 28 27 26 25 24 23 22 21 20


Bit
- 8192 4096 2048 1024 512 256 128 64 32 16 8 4 2 1
1 1 0 0 0 1 0 0 0 0 1 1 1 1 1

8192+512+16+8+4+2+1=-8735

(110001000011111)2 =-8735

Questions No 02 Marks (10)


Solve the given Boolean Expression by using truth table.

,𝑨⊕𝑫.
.
,,𝑩.+,𝑪.. ,𝑨⊕𝑫. ,𝑨+𝑩.
A B C D 𝑨⊕𝑫 𝑨+𝑩 ,,𝑩.+,𝑪.. ,𝑩+𝑪+𝑫. ⊕ . .
,𝑩+𝑪+𝑫. ,𝑨+𝑩. (,,𝑩.+,𝑪..

,𝑩+𝑪+𝑫.)

0 0 0 0 0 0 1 0 1 0 0
0 0 0 1 1 0 1 1 0 0 0
0 0 1 0 0 0 1 1 0 0 0
0 0 1 1 1 0 1 1 0 0 0
0 1 0 0 0 1 1 1 0 0 0
0 1 0 1 1 1 1 1 0 1 0
0 1 1 0 0 1 0 1 1 0 0
0 1 1 1 1 1 0 1 1 1 1
1 0 0 0 1 1 1 0 1 1 1
1 0 0 1 0 1 1 1 0 0 0
1 0 1 0 1 1 1 1 0 1 0
1 0 1 1 0 1 1 1 0 0 0
1 1 0 0 1 1 1 1 0 1 0
1 1 0 1 0 1 1 1 0 0 0
1 1 1 0 1 1 0 1 1 1 1
1 1 1 1 0 1 0 1 1 0 0

You might also like