Uploaded by hhhfjdio qwdqwd

Number conversion 2

advertisement
Computer Sciences
Binary system and number conversion
1. Convert the following numbers in the required numerical system:
•
19310 to base 2
•
19310 to base 8
•
19310 to base 16
•
7910 to base 2
•
32610 to base 2
•
12810 to base 2
•
CAFE16 to base 2
•
AA5516 to base 2
•
101010102 to base 10
•
010101012 to base 10
2. Perform the following operation after converting the numbers in pure binary
•
3410 + 7710
•
22510 + 6310
•
22910 + 11110
•
1010 - 610
•
3910 - 1410
•
3210 - 710
•
8410 + 3710
•
1810 + 710
•
2510 + 1510
3. Represent in Sign and Magnitude (S&M), and in two's complement (2C) on 8 bits the
following decimal numbers.
•
+12
•
-35
•
+40
•
-88
•
+17
•
-128
•
+271
•
+128
4. Perform the following operations after converting the numbers in two’s complement on 8
bits. In every case determine whether the overflow condition exists or not.
•
2310 + 8810
•
1210 - 3710
•
-6510 + 11010
•
10010 + 6510
•
12310 - 11710
•
-9910 - 4510
•
5010 - 5110
Download