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

Cs 302 Digital Logic Design

The document contains the solutions to 4 questions on number conversion between different number systems: 1. It converts between hexadecimal, decimal, binary, and decimal. 2. It converts a hexadecimal number to grey code. 3. It converts a base 5 number to a "caveman number system". 4. It converts an octal number to excess-7 code by adding 8 to each digit and converting to binary.

Uploaded by

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

Cs 302 Digital Logic Design

The document contains the solutions to 4 questions on number conversion between different number systems: 1. It converts between hexadecimal, decimal, binary, and decimal. 2. It converts a hexadecimal number to grey code. 3. It converts a base 5 number to a "caveman number system". 4. It converts an octal number to excess-7 code by adding 8 to each digit and converting to binary.

Uploaded by

NIGHT D3vil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Cs 302 Digital Logic design

Assignment 1
Bc190406828
Muhammad Shehzaib Khalid
Ques1:

Ans:

Step 1
(6F4DE2) H = (?)D
(6F4DE2)16 = (6*165) + (1F*164) + (4*163) + (D*162) + (E*161) + (2*160)
(6F4DE2)16 = (6*165) + (15*164) + (4*163) + (13*162) + (14*161) + (2*160)
(6F4DE2)16 = 6291456+983040+16384+3328+224+2
(6F4DE2)16 = 7294434D
Step 2
(3476423)0 = (?)D
(3476423)8= (3*86) + (4*85) + (7*84) + (6*83) + (4*82) + (2*81) + (3*80)
(3476423)8= 786432+131072+28672+3072+256+16+3
(3476423)8= 949523D
Step 3
10110101010101010111012 = (?)10
10110101010101010111012 = (1*221) + (0*220) + (1*219) + (1*218) + (0*217) + (1*216) + (0*215) +
(1*214) + (0*213) + (1*212) + (0*211) + (1*210) + (0*29) + (1*28) + (0*27) + (1*26) + (0*25) + (1*24) +
(1*23) + (1*22) + (0*21) + (1*20)

(1011010101010101011101)2=2091752 + 0 + 524288 + 262144 + 0 + 65536 + 0 + 16384 + 0 +


4096 + 0 + 1024 + 0 + 256 + 0 + 64 + 0 + 16 + 8 + 4 + 0 + 1
(1011010101010101011101)2 = 2907097310
Step 4
(↑∆>∑Ω)5 = (?)D
(↑∆>∑Ω)5 = ↑*54 + ∆*53 + >*52 + ∑*51 + Ω*50
(↑∆>∑Ω)5 = ↑*625 + ∆*125 + >*25 + ∑*5+ Ω*1
(↑∆>∑Ω)5 = 4*625 + 1*125 + 2*25 + 0*5 + 3*1
(↑∆>∑Ω)5 =2500 + 125 + 50 + 0 + 3
(↑∆>∑Ω)5 = 2678
(↑∆>∑Ω)5 = (2678) D
(6F4DE2) H + (3476423)0 - 10110101010101010111012 + (↑∆>∑Ω)5 - 949523D
= (7294434) + (949523) - (297973) + (2678) - (9877693)
= 8246635-12848666
= (-4602031)10

5 -4602031 Reminder

5 920406 1
5 184081 1
5 36816 1
5 7363 1
5 1472 3
5 294 2
5 58 4
5 11 3
2 1

( 2134231111)5

Convert this base 5 number to Caveman Number System

(2134231111)  (     )

Ques 2

( FE 45EA) H into the Grey Code.


Convert
Ans:

( FE 45 EA) H to binary by replacing the each hexadecimal symbol with


Convert the hexadecimal number
appropriate four bits binary number.
Step 1:

Hexa F E 4 5 E A
Number
Binary 1111 1110 0100 0101 1110 1010
number
Step 2:

Binary 1111 1110 0100 0101 1110 1010


Number
Gray Code 1000 1001 0110 0111 1001 1111
So, the Grey Code is = 10001001011001111001111
(Part B)

Find the equivalence Excesss-7 code for the number


 76372  o
Ans:
Convert octal number to Excess 7

Octal Number 7 6 3 7 2
Adding 8 8 8 8 8 8
We get 15 14 11 15 10
Convert into 1111 1110 1011 1111 1010
binary each bit

Equivalent Excess-7 code for the number


 76372  o is equal to (11111110101111111010)

You might also like