0% found this document useful (0 votes)
2 views

assignmentsolutioncs302

The document presents a detailed solution to a mathematical problem involving conversions between different numeral systems, including hexadecimal, binary, and octal. It calculates the decimal equivalents of given numbers and performs arithmetic operations to arrive at a final hexadecimal result. The final answer is (1101C88F)16.

Uploaded by

umerjani229
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

assignmentsolutioncs302

The document presents a detailed solution to a mathematical problem involving conversions between different numeral systems, including hexadecimal, binary, and octal. It calculates the decimal equivalents of given numbers and performs arithmetic operations to arrive at a final hexadecimal result. The final answer is (1101C88F)16.

Uploaded by

umerjani229
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Name Muhammad Munir

VU ID MC170403547

Program code cs302

Solution

(i)
( AFCB 39)16+(↑↑ ∆ Ω∑)5 +(37374)8=¿

 (AFCB39)16 _________ (?)10

=(A*165)+(F*164)+(C*163)+(B*162)+(3*161)+(9*160)
=(A*1048576)+(F*65536)+(C*4096)+(B*256)+(3*16)+(9*1)
=(10*1048576)+(15*65536)+(12*4096)+(11*256)+(3*16)+(9*1)
=(10485760)+(983040)+(49152)+(2816)+(48)+(9)

= (11520825)10

 ()_________(?)10

=(*53)+( *52)+( *51)+( *50)


=(24*125)+( 1*25)+( 3*5)+( 0*1)
=(3000)+( 25)+( 15)+( 0)
= (3040)10

 (37374)8_______(?)10
=(3*84)+( 7*83)+( 3*82)+( 7*81)+(4*80)
=(3*4096)+( 7*512)+( 3*64)+( 7*8)+(4*1)
=(12288)+(3584)+(192)+(56)+(4)
=(16124)10
By Adding
=(11520825)10 +(3040)10 + (16124)10
=(11539989)10
So
 (AFCB39)16 +5()+(37374)8 =(11539989)10

-:-----------------------------------:-
Solution

(ii)
(F 2 BA 3 F )16−( 10110101000000011110001 )2 + ( 737475217 )8=¿ ¿

 (737475217)8_________(?)16

First step:
1 convert from octal to binary by repeated divisional method .
st

(7 3 7 4 7 5 2 1 7)8_________(?)2

Binary numbers Octal


22 21 20 numbers
0 0 0 0
0 0 1 1
0 1 0 2
0 1 1 3
1 0 0 4
1 0 1 5
1 1 0 6
1 1 1 7

=(111 011 111 100 111 101 010 001 111)2

Second step:
Convert binary number into Hexadecimal
 (111011111100111101010001111)2________ (?)16
= (0111 0111 1110 0111 1010 1000 1111)2
= (7 7 E 7 A 8 F)16

 (737475217)8 = (77E7A8F)16
(010110101000000011110001)2 ______ (?) 16
(0101 1010 1000 0000 1111 0001)2

= (5 A 8 0 F 1)16

By subtracting
= (F2BA3F)16 -(5A80F1)16
= (9834E)16

By adding
= (9834E)16 +
(77E7A8F)16
= (1101C88F)16

so
(F 2 BA 3 F )16−( 10110101000000011110001 )2 + ( 737475217 )8=(1101 C 88 F)16

You might also like