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

EE2403-Intro To computing-S2-20-21-HW1

This document appears to be homework instructions for converting numbers between different numeric bases, including binary, decimal, octal, hexadecimal, and other bases. It includes 24 problems involving converting numbers between bases, performing arithmetic in different bases, determining the base of a number system based on arithmetic examples, representing decimal numbers as repeating decimals in other bases, and exploring properties of certain numbers represented in different bases. Students are asked to show their work and solutions.

Uploaded by

Hoang Anh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
111 views

EE2403-Intro To computing-S2-20-21-HW1

This document appears to be homework instructions for converting numbers between different numeric bases, including binary, decimal, octal, hexadecimal, and other bases. It includes 24 problems involving converting numbers between bases, performing arithmetic in different bases, determining the base of a number system based on arithmetic examples, representing decimal numbers as repeating decimals in other bases, and exploring properties of certain numbers represented in different bases. Students are asked to show their work and solutions.

Uploaded by

Hoang Anh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

The HCMC University Of Technology – Faculty of Electronics and Electrical Engineering, EE2403, HW #1

Introduction to Computing Homework #1 Due: Monday, 08 Mar 2021


EE2403 (7h15 AM for group TT02,
9h15 for group TT01)
Delay + 1 minute = - 1
CTTIEN Lecturer: Hoang Trang

Student name and ID Grade

Note:
Write down your work on answer sheet. Show your work.
Don’t COPY.

1.1 Convert to hexadecimal and then to binary:


(a) 757.2510 (b) 123.1710 (c) 356.8910 (d) 1063.510

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.3 Convert to base 6: 3BA.2514 (do all of the arithmetic in decimal).

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.5 Add, subtract, and multiply in binary:


(a) 1111 and 1010 (b) 110110 and 11101 (c) 100100 and 10110

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.7 Convert to hexadecimal and then to binary.


(a) 1305.37510 (b) 111.3310 (c) 301.1210 (d) 1644.87510

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

to convert the following number to base 9: 1110212.202113

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.12 Add, subtract, and multiply in binary:


(a) 1111 and 1001 (b) 1101001 and 110110 (c) 110010 and 11101

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.14 Divide in binary:


(a) 11101001 ÷ 101 (b) 110000001 ÷ 1110 (c) 1110010 ÷ 1001
Check your answers by multiplying out in binary and adding the remainder.

1.15 Divide in binary:


(a) 10001101 ÷ 110 (b) 110000011 ÷ 1011 (c) 1110100 ÷ 1010

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

Decimal Binary Octal Hexadecimal


91.25 ? ? ?
? 111011.101 ? ?
? ? 741.12 ?
? ? ? AB3E.D
104.3 ? ? ?
? 101011100101.00101 ? ?

1.19 A computer represents information in groups of 32 bits. How many different


integers
can be represented in
(a) binary, (b) BCD, and (c) Octal (d) Hexadecimal (e) 8-bit
The HCMC University Of Technology – Faculty of Electronics and Electrical Engineering, EE2403, HW #1

ASCII, all using 32 bits?

1.20 In each of the following cases, determine the radix r:


a) (ABC)r = (1845)10
b) (52)r = (37)10
c) (BEE)r= (2699)10
d) (3E2)r = (1742)8

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.22 Convert 0.363636 . . . 10 to its exact equivalent base 8 number.

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.

You might also like