- Get you familiar with data representation and simple logic operations for this course. Requirements:
- Finish the questions section below. Points for each question included in parenthesis.
- Show your work to get full credit. ZERO point without steps for a result.
- Please start early. ZERO point for late submission. After the 11:59pm on the due day, you cant submit your assignment anymore.
- Check deliverables section below. ZERO point for hand-written or scanned homework, since hand-written could be hard to recognize and harm your grade. Deliverables:
- Save your solutions of questions as a pdf You can use this document as worksheet.
- Name document as a pdf.
- Submit your pdf through the Canvas system. You do not need to submit hard copies.
Rebu4al period:
- You will be given a period of 3 business days to read and respond to the comments and grades of your homework or project assignment. The TA may use this opportunity to address any concern and question you have. The TA also may ask for additional information from you regarding your homework or project.
Ques8ons:
- Convert the following unsigned base 2 numbers (binary) to base 16 numbers (hexadecimal):
- 0110 0001 1111
- 1000 1111 1100
- 0001 0110 0100 0101
- Convert the following binary numbers to base 10 numbers (decimal). Each time if binary numbers are represented in:
- Signed magnitude representation.
- 1100 1010 =
- 1111 0010 =
- 1000 0111 =
- Ones complement representation.
- 1100 1010 =
- 1111 0010 =
- 1000 0111 =
- Twos complement representation.
- 1100 1010 =
- 1111 0010 =
- 1000 0111 =
For example, question A, 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 are 9 separate answers in total.
- Convert the following base 10 (decimal) values to binary numbers (8-bits). Each binary result represented in:
- Signed magnitude representation.
- -100d =
- -16d =
- -21d =
- -0d =
- Ones complement representation.
- -100d =
- -16d =
- -21d =
- -0d =
- Twos complement representation.
- -100d =
- -16d =
- -21d =
- -0d =
(There are 12 separate answers in total.)
- What is the range of:
- An unsigned 7-bit number?
- A signed 7-bit number?
- Solve following bitwise operations ( = AND, = OR)
e.g. 0101 0011 = 0001
- 1000 1110
- 1000 1110
- (1000 1110) (1001 1110)
- Please demonstrate each step in the calculation of the arithmetic operation 25
- (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.