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

Assignment - Numerical Systems

Uploaded by

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

Assignment - Numerical Systems

Uploaded by

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

Introduction to Computing and Programming.

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.

Addition with Negative Numbers in Binary


1. -5 and 3 (use 8-bit two's complement).
2. -10 and 7 (use 8-bit two's complement).
3. -18 and 12 (use 8-bit two's complement).
4. -20 and 25 (use 8-bit two's complement).
5. -35 and 15 (use 8-bit two's complement).

Subtraction with Negative Numbers in Binary


6. 7 from -3 (use 8-bit two's complement).
7. -12 from 10 (use 8-bit two's complement).
8. 5 from -8 (use 8-bit two's complement).
9. -20 from -15 (use 8-bit two's complement).
10. -30 from 25 (use 8-bit two's complement).

Multiplication with Negative Numbers in Binary


11. -3 by 4 (use 8-bit two's complement).
12. -6 by 5 (use 8-bit two's complement).
13. -7 by -2 (use 8-bit two's complement).
14. -9 by 3 (use 8-bit two's complement).
15. -8 by -4 (use 8-bit two's complement).

Division with Negative Numbers in Binary


16. -16 by 4 (use 8-bit two's complement).
17. -20 by -5 (use 8-bit two's complement).
18. 30 by -6 (use 8-bit two's complement).
19. -25 by 5 (use 8-bit two's complement).
20. -35 by 7 (use 8-bit two's complement).

You might also like