Professional Documents
Culture Documents
Student Name:___________________________________
Instructions: You must show your work (where appropriate) to receive credit. A correct answer with no
work shown will receive zero points. Your writing must be neat as well to receive credit. You must
complete all problems to receive full credit. Complete your homework submission and attach it (stapled)
to this cover sheet. Recopy the problem statement onto your homework answers. Failure to follow
instructions will result in a loss of points.
Each page of your homework must have the following information on the top: ELEC 1510, Homework 1,
Your Name, Page Number
Homework 1 grading: Not all problems will be graded for correctness. Some problems will be chosen at
random and graded for correctness. The remaining problems will be graded for completeness. 10 points
will be deducted for each problem not fully completed.
Total 100
1. Fill in the table for the unsigned numbers.
1 0001 01 1
2 0010 02 2
3 0011 03 3
4 0100 04 4
5 0101 05 5
6 0110 06 6
7 0111 07 7
8 1000 10 8
9 1001 11 9
10 1010 12 A
11 1011 13 B
12 1100 14 C
13 1101 15 D
14 1110 16 E
15 1111 17 F
2. What are the digits of the following number systems?
a. Base 5
0, 1, 2, 3, 4
b. Base 8
0, 1, 2, 3, 4, 5, 6, 7
3. What values in a base 4 and a base 9 number system are equivalent to 10102?
224 119
Example: 924.812510
Find the hexadecimal value of the integer number to the left of the decimal point, using the
division method.
The remainder 12 is the least significant hex digit, filling the 16^0 position. Remember to
convert the decimal value of 12 to its hexadecimal value of C.
C
16^3 16^2 16^1 16^0
57 / 16 = Quotient 3, remainder 9.
9 C
16^3 16^2 16^1 16^0
3 9 C
16^3 16^2 16^1 16^0
0 / 16 = Quotient 0, remainder 0. If we need to fill in more bit positions to the left, you can see
that all the values would be 0.
0 3 9 C
16^3 16^2 16^1 16^0
We only need 3 hex digits to represent the decimal value 924. Let’s check our result by
converting 39C16 back to decimal.
The next step is converting the fractional portion to the right of the decimal point .812510 to
hexadecimal. We do this by multiplying by 16.
0.8125 x 16 = 13.0
The decimal value 13 is hex D. This is the digit immediately following the radix point.
Subtract the 13 from 13.0 and multiply the remaining fraction by 16.
13.0 – 13 = 0.0
0.0 x 16 = 0.0
Now put the integer portion 396 together with the fractional portion .D to form 396.D16
Finally, convert the hexadecimal number to binary. Remember each hex digit convert to 4 binary
bits:
3 9 C . D
0011 1001 1100 . 1101
Answer: 924.812510 = 39C.D16 = 0011 1001 1100 . 11012
a. 757.2510
Check
0 0 512 240 5 757
Check
0 0 0 192 5 197
Answer:
̅̅̅̅̅̅̅̅̅ ̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅
c. 356.8910
Check
0 0 256 96 4 356
̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅
d. 1063.510
Check
0 0 1024 32 7 1063
a. 111010110001.0112
b. 10110011101.112
a. 111010110001.0112
Binary 011
Octal 3
Binary 0110
Hex 6
Binary 110
Octal 6
Binary 1100
Hex C
Addition
Carry 1 0 0
111 1 1 1
+ 100 1 0 0
Sum 0 1 1
Subtraction
Borrow 0 0
111 1 1 1
-100 1 0 0
Difference 0 1 1
Multiplication
111 1 1 1
X 100 1 0 0
0 0 0
0 0 0 0
1 1 1 0 0
Product 1 1 1 0 0
Binary Addition
Carry 1 1 1 0
1 1 1 1
+ 1 0 1 0
Sum 1 1 0 0 1
Binary Subtraction
Borrow
1 1 1 1
- 1 0 1 0
Sum 0 1 0 1
Binary Multiplication
1 1 1 1
x 1 0 1 0
0 0 0 0
1 1 1 1 0
0 0 0 0 0 0
1 1 1 1 0 0 0
Product 1 0 0 1 0 1 1 0
b. 110110 and 11101
Binary Addition
Carry 1 1 1 1
1 1 0 1 1 0
+ 1 1 1 0 1
Sum 1 0 1 0 0 1 1
Binary Subtraction
Borrow 1 1 0 0 1
1 1 0 1 1 0
- 1 1 1 0 1
Diff 0 1 1 0 0 0
Binary Multiplication
1 1 0 1 1 0
x 1 1 1 0 1
1 1 0 1 1 0
0 0 0 0 0 0 0
1 1 0 1 1 0 0 0
1 1 0 1 1 0 0 0 0
1 1 0 1 1 0 0 0 0 0
Product 1 1 0 0 0 0 1 1 1 1 0
c. 100100 and 10110
Binary Addition
Carry 0 0 1 0 0
1 0 0 1 0 0
+ 1 0 1 1 0
Sum 1 1 1 0 1 0
Subtraction, Step 1
Binary Subtraction
Borrow
1 0 0 1 0 0
- 1 0 1 1 0
Diff 0
Subtraction, Step 2
Binary Subtraction
Borrow 1 1
1 0 0 0 0 0
- 1 0 1 1 0
Diff 1 0
Subtraction, Step 3
Binary Subtraction
Borrow 1 1 1
0 1 0 0 10 0
- 1 0 1 1 0
Diff 0 0 1 1 1 0
Binary Multiplication
1 0 0 1 0 0
x 1 0 1 1 0
0 0 0 0 0 0
1 0 0 1 0 0 0
1 0 0 1 0 0 0 0
0 0 0 0 0 0 0 0 0
1 0 0 1 0 0 0 0 0 0
Product 1 1 0 0 0 1 1 0 0 0
7. Convert the following decimal numbers to octal and then to binary:
a. 2983 63/64
101110100111.1111112 BA7.FC16
b. 93.70
1011101.101100110011001100110011001100112
135.54631463146314648
c. 1900 31/32
11101101100.111112
3554.768
d. 109.30
1101101.010011001100110011001100110011002
155.23146314631463148
27 = 12810
9. What is the range of unsigned decimal numbers that can be represented with 10 bits?
0 to 210 – 1 or 0 to 1023