Chapter (1) Heet S
Chapter (1) Heet S
Chapter (1) Heet S
Answer:
Answer:
(a) 4 * 53 + 3 * 52 + 1 * 51 + 0 * 50 = (580)10
(b) 1* 122 + 9 * 121 + 8 * 120 = (260)10
(c) 4 * 82 + 3 * 81 + 5 * 80 = (285)10
(d) 3 * 62 + 4 * 61 + 5 * 60 = (137)10.
1.4 What is the largest binary number that can be expressed with
16 bits?
What are the equivalent decimal and hexadecimal numbers?
Answer:
The largest number of any k-digits binary number is that with all
digits
being 1, such that the largest number of 16-digit binary number is
(1111 1111 1111 1111)2 = (65535)10 = (FFFF)16
Another solution:
To calculate the largest number of k bits we can simply use the
formula
2k -1
In this question 216 -1 = 65536-1=65535.
1.5 Determine the base of the numbers in each case for the
following operations to be correct:
(a) 14/2 = 5 (b) 54/4 = 13 (c) 24 + 17 = 40.
Answer:
(a) (1 * b1 + 4 * b0) / 2 * b0 = 5 * b0
(b + 4) / 2 = 5
b/2 + 4/2 = 5 b=6
(b) (5 * b1 + 4 * b0) / 4 * b0 = 1 * b1 + 3 * b0
(5b + 4) / 4 = 1b + 3
5b/4 + 4/4 = 1b + 3 b=8
Answer:
Answer:
Answer:
431/2
215 1 431 = (110101111)2
107 1
53 1
26 1
13 1
6 1
3 0
1 1
0 1
431/16
F F 431 = (1AF)16= (110101111)2
F A
F 1
Answer:
(a) (1.10010)2 = (0001.1001)2 = (1.9)16 = (1 + 9*16-1 ) = (1.563) 10
(b) (110.010)2 = (0110.0100)2 = (6.4)16 = (6 + 4*16-1 ) = (6.25)10
Answer:
a) Addition Multiplication
1
1001 1001
+ ×
0101 101
1110 1001
0000 +
1001
101101
Answer:
(a) Integer Remainder
431/2
215 1
107 1
53 1
26 1
13 1
6 1
4 0
2 1
0 1
27/2
0.315*2 0
0.36 1
0.26 0
0.52 0
0.04 1
0.08 0
0.16 0
0.32 0
1.14 Obtain the 1’s and 2’s complements of the following binary
numbers: (a) 00010000 (b) 00000000
(c) 11011010 (d) 10101010
Answer:
Answer:
Answer:
a) FFFF – C3DF + 1 = 3C21
d) 3C21
Answer:
a) 10’s complement of 2579 = 9999 - 2579 + 1 = 7421
4637 + 7421 = 12058 here, the result should be positive; we discard
the 1.
result = + 2058
b) 10’s complement of 1800 = 8200
125 + 8200 = 8325 here, the result should be negative; we find its
10’s complement and affix a minus sign.
result= - 1675
1.18 Perform subtraction on the given unsigned binary numbers
using the 2’s complement of the subtrahend. Where the result should
be negative,
find its 2’s complement and affix a minus sign.
(a) 10011 – 10010 (b) 100010 – 100110
Answer:
a) 10011 + 01110 = 100001
Result = + 00001, as we discard 1 b) 100010 + 011010 = 111100
Result= - 000100, as the result should be negative.
1.23 Represent the unsigned decimal numbers 791 and 658 in BCD,
and then show the steps necessary to form their sum.
Answer:
11 1
0111 1001 0001
+
0110 0101 1000
1111111
1101 1110 1001
0110 0110 +
= (1449)BCbD
0001 0100 0100 1001
1.35.
Answer:
f=a*b*c g=a+b+c