Professional Documents
Culture Documents
1. Convert the Hexadecimal number 95FF4 to Binary, Octal, and decimal number system.
9=1001
5=0101
F=1111
F=1111
4=0100
Hence (95FF4)16= (10010101111111110100)2
Now (10010101111111110100)2 will convert to Octa number system
(10010101111111110100)2 = (_________)8
010|010 | 101 | 111 | 111 | 110 | 100
↓ ↓ ↓ ↓ ↓ ↓ ↓
2 2 5 7 7 6 4
(10010101111111110100)2 = ( 2257767)8
Hence (95FF4)16 = ( 2257767)8
Division Remainder
by 2 Quotient (Digit)
(05953)/2 2976 1
(2976)/2 1488 0
(1488)/2 744 0
(744)/2 372 0
(372)/2 186 0
(186)/2 93 0
(93)/2 46 1
(46)/2 23 0
(23)/2 11 1
(11)/2 5 1
(5)/2 2 1
(2)/2 1 0
(1)/2 0 1
Hence (05953)10
=(1011101000001)2
Division Remainder
by 8 Quotient (Digit)
(05953)/8 744 1
744/8 93 0
93/8 11 5
11/8 1 3
1/8 0 1
Hence (05953)10 = (13501)8
3. Convert the Octal number 75431 to Binary, Decimal and Hexadecimal number system
• Highest symbol is 7
• 7 in Binary is 111
• Therefore, each digit is breaking down to 3 bits.
• Conversion is achieved by breaking digit into 3 bits, starting from the Right side, and
finding the Binary equivalent
(75431)8 = (__________)2
7 = 111
5 = 101
4 = 100
3 = 011
1 = 001
(75431)8 = (__________)10
(75431)8 = 28672+2560+256+24+1
(75431)8 = 31513
(75431)8 = (______) 2
7 =111
5 =101
4 =100
3 =011
1 =001
(75431)8 = (111101100011001)2
(111101100011001)2 = (_______) 16
4. Convert the Binary number 101100101101 to Octal, Decimal and Hexadecimal number System:
• Highest symbol is 7
• 7 in Binary is 111
• Therefore, the largest Binary grouping in octal consists of 3 bits.
• Conversion is achieved by breaking Binary into groups of 3 bits, starting from the Right side, and
finding the Octal equivalent.
(101100101101)2 = (_________)8
(101100101101)2 = (______) 10
(101100101101)2 = 1x211+0x210+1x29+1x28+0x27+0x26+1x25+0x24+1x23+1x22+0x21+1x20
= 2040+512+256+32+8+4+2
= (2854) 10
(101100101101)2 = (______) 16
1. From right divide them into groups of four digits as in hexadecimal l number system highest symbol is
15
2. 15 in binary is 1111
(101100101101)2 = (B2D) 16
Q#5 Draw a flow chart to find the average of any three numbers.
Let three numbers are 1, 2, 3.
𝐴𝑣𝑒𝑟𝑎𝑔𝑒 = 1+2+3 / 3 = 2
The flow chart of the average of these three numbers is show below:
Start
Input No’s
1,2,3
Average=
1+2+3 / 3 = 2
Output Avg.
End
Q#6 Write the algorithm to find the average of any three numbers.
Step 1: Start
Step 6: End.
THANK YOU