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

Assignment-1: EC-0319 Digital Electronics

This document contains 31 problems related to converting between different numeric bases such as binary, decimal, hexadecimal, and octal. It also includes problems involving operations like addition, subtraction, and multiplication in these bases. Finally, it covers topics like 1's complement and 2's complement representation of negative numbers.

Uploaded by

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

Assignment-1: EC-0319 Digital Electronics

This document contains 31 problems related to converting between different numeric bases such as binary, decimal, hexadecimal, and octal. It also includes problems involving operations like addition, subtraction, and multiplication in these bases. Finally, it covers topics like 1's complement and 2's complement representation of negative numbers.

Uploaded by

Lucas Weaver
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

EC-0319 Digital Electronics

Assignment-1

1. Convert to hexadecimal and then to binary:


(a) 757.2510 (b) 123.1710 (c) 356.8910 (d) 1063.510
2. Convert to octal. Convert to hexadecimal. Then convert both of your answers to decimal, and verify that they
are the same.
(a) 111010110001.0112 (b) 10110011101.112
3. Convert to base 6: 3BA.2514 (do all of the arithmetic in decimal).
4. (a) Convert to hexadecimal: 1457.1110. Round to two digits past the hexadecimal point.
(b) Convert your answer to binary, and then to octal.
(c) Devise a scheme for converting hexadecimal directly to base 4 and convert your answer to base
4.
(d) Convert to decimal: DEC.A16.
5. Add, subtract, and multiply in binary:
(a) 1111 and 1010 (b) 110110 and 11101 (c) 100100 and 10110
6. Subtract in binary. Place a 1 over each column from which it was necessary to borrow.
(a) 11110100-1000111 (b) 1110110-111101 (c) 10110010-111101
7. Add the following numbers in binary using 2’s complement to represent negative numbers.
Use a word length of 6 bits (including sign) and indicate if an overflow occurs.
(a) 21 - 11 (b) (-14) - (-32) (c) (-25) – 18 (d) (-12) - 13 (e) (-11) - (-21)
Repeat (a), (c), (d), and (e) using 1’s complement to represent negative numbers.
8. A computer has a word length of 8 bits (including sign). If 2’s complement is used to represent
negative numbers, what range of integers can be stored in the computer?
If 1’s complement is used? (Express your answers in decimal.)
9. Construct a table for 7-3-2-1 weighted code and write 3659 using this code.
10. Convert to hexadecimal and then to binary.
(a) 1305.37510 (b) 111.3310 (c) 301.1210 (d) 1644.87510
11. Convert to octal. Convert to hexadecimal. Then convert both of your answers to decimal, and verify
that they are the same.
(a) 101111010100.1012 (b) 100001101111.012
12. (a) Convert to base 3: 375.548 (do all of the arithmetic in decimal).
(b) Convert to base 4: 384.7410.
(c) Convert to base 9: A52.A411 (do all of the arithmetic in decimal).
13. Convert to hexadecimal and then to binary: 544.19.
14. Convert the decimal number 97.710 into a number with exactly the same value represented in the
following bases. The exact value requires an infinite repeating part in the fractional part of the
number. Show the steps of your derivation.
(a) binary (b) octal (c) hexadecimal (d) base 3 € base 5
15. Devise a scheme for converting base 3 numbers directly to base 9. Use your method
to convert the following number to base 9: 1110212.20211 3
16. Convert the following decimal numbers to octal and then to binary:
63 31
(a) 2983 /64 (b) 93.70 (c) 1900 /32 (d) 109.30
17. Add, subtract, and multiply in binary:
(a) 1111 and 1001 (b) 1101001 and 110110 (c) 110010 and 11101
18. Subtract in binary. Place a 1 over each column from which it was necessary to borrow.
(a) 10100100 - 01110011 (b) 10010011 - 01011001
(c) 11110011 - 10011110
19. Divide in binary:
(a) 11101001 / 101 (b) 110000001 / 1110 (c) 1110010 / 1001
Check your answers by multiplying out in binary and adding the remainder.
20. Assume three digits are used to represent positive integers and also assume the following
operations are correct. Determine the base of the numbers. Did any of the additions overflow?
(a) 654+013 = 000
(b) 024 + 043 + 013 + 033 = 223
(c) 024 + 043 + 013 + 033 = 201
21. What is the lowest number of bits (digits) required in the binary number approximately equal to the
decimal number 0.611710 so that the binary number has the same or better precision?
22. Convert 0.363636. . .10 to its exact equivalent base 8 number.
23. Construct a table for 4-3-2-1 weighted code and write 9154 using this code.
24. Is it possible to construct a 5-3-1-1 weighted code? A 6-4-1-1 weighted code? Justify your answers.
25. Is it possible to construct a 5-4-1-1 weighted code? A 6-3-2-1 weighte code? Justify your answers.
26. Construct a 6-2-2-1 weighted code for decimal digits. What number does 1100 0011 represent in
this code?
27. Construct a 5-2-2-1 weighted code for decimal digits. What numbers does 1110 0110 represent in
this code?
28. Construct a 7-3-2-1 code for base 12 digits. Write B4A9 using this code.
29. It is possible to have negative weights in a weighted code for the decimal digits, e.g., 8, 4,-2, and -1
can be used. Construct a table for this weighted code.
30. (a) A = 101010 and B = 011101 are 1’s complement numbers. Perform the following operations and
indicate whether overflow occurs.
(i) A + B (ii) A – B
(b) Repeat Part (a) assuming the numbers are 2’s complement numbers.
31. (a) Assume the integers below are 1’s complement integers. Find the 1’s complement of each
number, and give the decimal values of the original number and of its complement.
(i) 0000000 (ii) 1111111 (iii) 00110011 (iv) 1000000
(b) Repeat, assuming the numbers are 2’s complement numbers and finding the 2’s complement of
them.

You might also like