# CS基础辅导 | COMP 3350 Project #1

COMP 3350 Project #1

Possible points: 100 Due: September 6, 2019 11:59pm

Goals:

• 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 can’t submit your assignment anymore.
• Check deliverables section below. ZERO point for hand-written or scanned homework.

Deliverables:

• Save your solutions of questions as a pdf document. You can use this document as worksheet.
• Name document as a “Firstname_Lastname.pdf”.
• Submit your “Firstname_Lastname.pdf” through the Canvas system. You do not need to submit hard copies.

Rebuttal 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.

Questions:

1. (9 points) Convert the following unsigned base 2 numbers (binary) to base 16 numbers (hexadecimal):
2. 0110 0001 1111
3. 1000 1111 1100
4. 0001 0110 0100 0101

1. (27 points) Convert the following signed base 2 numbers (binary) to base 10 numbers (decimal):
2. 1100 1010
3. 1111 0010
4. 1000 0111

Each using:

1. a) Signed_magnitude representation.
2. b) One’s complement representation.
3. c) Two’s complement representation.

1. (36 points) Convert the following base 10 (decimal) values to two’s complement (8-bits):
2. -100d
3. -16d
4. -21d
5. -0d

Each using:

1. a) Signed_magnitude representation.
2. b) One’s complement representation.
3. c) Two’s complement representation.

1. (4 points) What is the range of:
2. An unsigned 7-bit number?
3. A signed 7-bit number?

1. (12 points) Provide the answer to the following problems (∧ = AND, ∨ = OR )
2. 1000 ∧ 1110
3. 1000∨1110
4. (1000∧1110) ∨ (1001∧1110)

1. (9 points) Please demonstrate each step in the calculation of the arithmetic operation 25 – 65. (both 25 and 65 are signed decimal numbers)

1. (3 points) Mathematically the answer in Q6 is -40d. Please verify your answer in Q6 using a conversion of 2’s and decimal numbers.

E-mail: vipdue@outlook.com  微信号:vipnxx