Upcoming SlideShare
×

# Cse

356 views

Published on

cse assignment

Published in: Education, Technology
0 Likes
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
• Be the first to comment

• Be the first to like this

Views
Total views
356
On SlideShare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
3
0
Likes
0
Embeds 0
No embeds

No notes for slide

### Cse

1. 1. CSE AssignmentName: Md. RaihanDept: CSECourse: cse105ID: 2012-2-60-040sce: 4
2. 2. (111000110010)₂ conversion base2 to base8 conversion Equivalent value listBinary to octal→ binary Octalbase2(binary)= 111000110010base8(octal)= 7062 oct 000 0So, (111000110010)₂=(7062)₈ 001 1binary to decimal→Base8(octal)= 7062 010 2 = 7*8³+0*8²+6*8¹+2*8° 011 3 = 3634 decSo, (111000110010)₂=(3634)₁₀ 100 4binary to hexadecimal → 101 5 remainder3634/16= 227 2 in hexadecimal form 110 6227/16 = 14 3 in hexademal form14/16 = 0 14=E in hexadecimal form 111 7So,(111000110010)₂=(E32)₁₆
3. 3. (70642)₈ conversionOctal to decimal→Oct= 76042 = 7*8´+6*8³+0*8²+4*8¹+2*8° = 31778 decSo, (76042)₈= (31778)₁₀ Decimal Operation Quotient Remainder Binary Result Numberoctal to binary→ 31778 ÷2= 15889 0 0 15889 ÷2= 7944 1 10 7944 ÷2= 3972 0 010 3972 ÷2= 1986 0 0010 1986 ÷2= 993 0 00010 993 ÷2= 496 1 100010 496 ÷2= 248 0 0100010 248 ÷2= 124 0 00100010 124 ÷2= 62 0 000100010 62 ÷2= 31 0 0000100010 31 ÷2= 15 1 10000100010 15 ÷2= 7 1 110000100010 7 ÷2= 3 1 1110000100010 3 ÷2= 1 1 11110000100010 1 ÷2= 0 1 111110000100010
4. 4. Octal to hexadecimal→(76042)₈= (31778)₁₀Decimal operation quotient remaindernumber31778 ÷16 = 1986 21986 ÷16= 124 2124 ÷16 = 7 12=C7 ÷16= 0 70 Done.So, (76042)₈=(7C22)₁₆
5. 5. (786)₁₀ conversionDecimal to binary→Decimal operation quotient remainder Binary resultnumber786 ÷2= 393 0 0393 ÷2= 196 1 10196 ÷2= 98 0 01098 ÷2= 49 0 001049 ÷2= 24 1 1001024 ÷2= 12 0 01001012 ÷2= 6 0 00100106 ÷2= 3 0 000100103 ÷2= 1 1 1000100101 ÷2= 0 1 1100010010 So, (786)₁₀=(1100010010)₂
6. 6. Decimal to octal→ Decimal Octal Operation Quotient Remainder Number Result 786 ÷8= 98 2 2 98 ÷8= 12 2 22 12 ÷8= 1 4 422 1 ÷8= 0 1 1422 0 done.So, (786)₁₀ = (1422)₈Decimal to hexadecimal→ Decimal Hexadecimal Operation Quotient Remainder Number Result 786 ÷ 16 = 49 2 2 49 ÷ 16 = 3 1 12 3 ÷ 16 = 0 3 312=3C 0 done.So, (786)₁₀= (312)₁₆ =(3C)₁₆
7. 7. FA09 conversion Hexa-decimal value list:Hexa-dec to decimal→FA09 hexadecimal: Hexa 0 1 2 3 4 5 6 7 decimal:= ((F)*163) + ((A)*162) + (0*161) + (9*160)= (15*163) + (10*162) + (0* 161) + (9*160) Decimal: 0 1 2 3 4 5 6 7= (15* 4096) + (10* 256) + (0* 16) + (9*1) Hexa 8 9 A B C D E F= 61440+ 2560 + 0+9 decimal:= 64009 decimal Decimal: 8 9 10 11 12 13 14 15Hexadecimal to octal→(FA09)₁₆=(64009)₈ Decimal Operation Quotient Remainder octal Result Number 64009 ÷8= 8001 1 1 8001 ÷8= 1000 1 11 1000 ÷8= 125 0 011 125 ÷8= 15 5 5011 15 ÷8= 1 7 75011 1 ÷8= 0 1 175011So, (FA09)₁₆ =(175011)₈
8. 8. hexadecimal digit to obtain the equivalentHexadecimal to binary→ group of four binary digits list:Hexa F A 0 9 Hexadecimal= 0 1 2 3 4 5 6 7 decimal:Binary= 1111 1010 0000 1001 = 1111101000001001 binary 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 Binary: 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 So, (FA09)₁₆=(111101000001001)₂ Hexa 8 9 A B C DE F decimal: 1 1 1 1 1 1 1 1 0 0 0 0 1 1 1 1 Binary: 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1