- Get you familiar with data representation and simple logic operations for this course.
Questions:
- Convert the following unsigned base 2 numbers (binary) to base 16 numbers (hexadecimal):
- 0110 0001 1111
- 1000 1111 1100
- 0001 0110 0100 0101
(2.1) Convert the following binary
- 1100 1010
- 1111 0010
- 1000 0111
numbers into base 10 numbers (decimal), binary numbers are represented in signed magnitude representation.
- Redo the question 2.1, if the binary number are represented in Ones complement representation.
- Redo the question 2.1, if the binary number are represented in Twos complement representation.
For example, question (2.1), if 1100 1010 is a binary number represented in signed magnitude representation, what is the decimal value? Also do it again if 1100 1010 is a binary number in ones complement representation and twos complement representation. There 9 questions in total.
(3.1) Convert the following base 10 (decimal) values to binary numbers (8-bits): a. -100d
- -16d
- -21d
- -0d
Each binary result represented in Signed magnitude representation.
- Redo the question (3.1), convert binary into in Ones complement representation.
- Redo the question (3.1), convert binary into in Twos complement representation.
- (4 points) What is the range of: A. An unsigned 7-bit number?
- A signed 7-bit number?
- (12 points) Provide the answer to the following problems ( = AND, = OR)
- 1000 1110
- 10001110
- (10001110) (10011110)
- Please demonstrate each step in the calculation of the arithmetic operation 25 65. (both 25 and 65 are signed decimal numbers)
- Mathematically the answer in Q6 is -40d. Please verify your answer in Q6 using a conversion of 2s and decimal numbers.
Reviews
There are no reviews yet.