EE2403-Intro To computing-S2-20-21-HW1
EE2403-Intro To computing-S2-20-21-HW1
Note:
Write down your work on answer sheet. Show your work.
Don’t COPY.
1.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
1.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.
1.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
1.8 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
1.9 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 (e) base 5
1.10 Devise a scheme for converting base 3 numbers directly to base 9. Use your method
The HCMC University Of Technology – Faculty of Electronics and Electrical Engineering, EE2403, HW #1
1.11 Convert the following decimal numbers to octal and then to binary:
(a) 2983(63∕64) (b) 93.70 (c) 2983(31∕32) (d) 109.30
1.13 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
1.16 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
1.17 Convert to hexadecimal, and then give the ASCII code for the resulting
hexadecimal number (including the code for the hexadecimal point):
(a) 222.2210 (b) 183.8110
1.18
Please convert the following numbers from the given base to the other three bases listed
in the table below. Please write down your steps, show your work
1.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?
1.23 (a) Verify that a number in base b can be converted to base b3 by partitioning the
digits of the base b number into groups of three consecutive digits starting at
the radix point and proceeding both left and right and converting each group
into a base b3 digit. (Hint: Represent the base b number using the power series
expansion.)
(b) Verify that a number in base b3 can be converted to base b by expanding each
digit of the base b3 number into three consecutive digits starting at the radix point and
proceeding both left and right.
1.24 (a) Show that the number 121b, where b is any base greater than 2, is a perfect
square (i.e., it is equal to the square of some number).
(b) Repeat part (a) for the number 12321b, where b > 3.
(c) Repeat part (a) for the number 14641b, where b > 6.
(d) Repeat part (a) for the number 1234321b, where b > 4.