Assignment - Numerical Systems
Assignment - Numerical Systems
Assignment №1
Decimal to Binary
1. Convert 129 to binary.
2. Convert 255 to binary.
3. Convert 512 to binary.
4. Convert 1234 to binary.
5. Convert 7890 to binary.
Binary to Decimal
6. Convert 1010 to decimal.
7. Convert 1101 to decimal.
8. Convert 100111 to decimal.
9. Convert 111000 to decimal.
10. Convert 110110110101 to decimal.
Decimal to Octal
11. Convert 45 to octal.
12. Convert 156 to octal.
13. Convert 300 to octal.
14. Convert 31415 to octal.
15. Convert 65535 to octal.
Octal to Decimal
16. Convert 35 to decimal.
17. Convert 234 to decimal.
18. Convert 407 to decimal.
19. Convert 777 to decimal.
20. Convert 34567 to decimal.
Decimal to Hexadecimal
21. Convert 31 to hexadecimal.
22. Convert 102 to hexadecimal.
23. Convert 255 to hexadecimal.
24. Convert 4096 to hexadecimal.
25. Convert 65535 to hexadecimal.
Hexadecimal to Decimal
26. Convert 1F4D to decimal.
27. Convert A7B9 to decimal.
28. Convert FFAA to decimal.
29. Convert 7E4D to decimal.
30. Convert F9F9F9 to decimal.
Mixed Conversions
31. Convert 110011 (binary) to hexadecimal.
32. Convert 537 (octal) to binary.
33. Convert 144 (octal) to hexadecimal.
34. Convert 1110101110011010 (binary) to hexadecimal.
35. Convert 5C4 (hexadecimal) to binary.
Binary Addition
1. 1011 + 1101
2. 101010 + 010101
3. 101011 + 10110
4. 1111 + 1011
5. 110011 + 100101
Binary Subtraction
1. 1010 - 0011
2. 10001 - 01100
3. 11010 - 10001
4. 11101 - 1100
5. 100101 - 011011
Binary Multiplication
1. 101 * 11
2. 110 * 101.
3. 1001 * 110
4. 1101 * 1010
5. 10111 * 101
Introduction to Computing and Programming. Assignment №1
Binary Division
1. 1010 ÷ 10.
2. 10000 ÷ 101.
3. 1110 ÷ 10
4. 10100 ÷ 11
5. 11110 ÷ 101
Two's Complement
1. Represent -15 in 8-bit two's complement.
2. Represent -255 in 8-bit two's complement.
3. Represent -512 in 9-bit two's complement.
4. Represent -65 in 8-bit two's complement.
5. Represent -127 in 8-bit two's complement.
Sign-Magnitude
1. Represent -15 in 8-bit sign-magnitude.
2. Represent -123 in 8-bit sign-magnitude.
3. Represent -255 in 8-bit sign-magnitude.
4. Represent -65 in 8-bit sign-magnitude.
5. Represent -127 in 8-bit sign-magnitude.