Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Homework Set 1 in CPSC 2105: Introduction to Computer Organization, Assignments of Computer Architecture and Organization

A homework assignment from the introduction to computer organization course (cpsc 2105) at the university of waterloo. The assignment covers the conversion of decimal, binary, and hexadecimal numbers, as well as the range of decimal numbers representable in two's complement form. Students are required to demonstrate their understanding of the conversion process by doing the calculations by hand.

Typology: Assignments

Pre 2010

Uploaded on 08/04/2009

koofers-user-09n
koofers-user-09n 🇺🇸

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CPSC 2105 Introduction to Computer Organization
Homework Set 1 Due Wednesday, January 17, 2007
NOTE: SHOW ALL OF YOUR WORK. YOU MUST DEMONSTRATE THAT YOU
UNDERSTAND THE PROCESS OF OBTAINING AN ANSWER. WHILE THESE CAN
BE DONE ON MANY CALCULATORS, YOU MUST DO THESE BY HAND.
Each of these questions counts 20 points.
1. Convert the following decimal numbers to binary numbers.
The numbers are unsigned. Use as many bits as necessary.
a) 63 b) 102 c) 240
2. Convert the following unsigned binary numbers to decimal numbers.
Use as many decimal digits as necessary.
a) 10111000 b) 111101 c) 1010101
3. Convert the following hexadecimal numbers to decimal numbers.
Use as many decimal digits as necessary.
a) 0x0AA b) 0xBAD c) 0x97
4. What is the range of decimal numbers that can be represented in:
a) 12–bit two’s–complement form? Express this range in decimal.
b) 16–bit two’s–complement form? This range can be expressed in any valid manner.
For example, the range for 32–bit two’s complement arithmetic can be represented as
either (– 231) to (231 – 1) or – 2, 147, 483, 648 to 2, 147, 483, 647.
5. Convert the following decimal numbers to binary representation. This involves separate
conversion of the whole number part and fractional part; thus 6.25 would be 110.01.
This is not a problem in conversion to IEEE–754 floating point standard.
a) 25.375
b) 127.5
c) 31.53125 (Note 17 / 32 = 0.53125 )
d) 63.00

Partial preview of the text

Download Homework Set 1 in CPSC 2105: Introduction to Computer Organization and more Assignments Computer Architecture and Organization in PDF only on Docsity!

CPSC 2105 Introduction to Computer Organization

Homework Set 1 Due Wednesday, January 17, 2007

NOTE: SHOW ALL OF YOUR WORK. YOU MUST DEMONSTRATE THAT YOU

UNDERSTAND THE PROCESS OF OBTAINING AN ANSWER. WHILE THESE CAN

BE DONE ON MANY CALCULATORS, YOU MUST DO THESE BY HAND.

Each of these questions counts 20 points.

  1. Convert the following decimal numbers to binary numbers. The numbers are unsigned. Use as many bits as necessary. a) 63 b) 102 c) 240
  2. Convert the following unsigned binary numbers to decimal numbers. Use as many decimal digits as necessary. a) 10111000 b) 111101 c) 1010101
  3. Convert the following hexadecimal numbers to decimal numbers. Use as many decimal digits as necessary. a) 0x0AA b) 0xBAD c) 0x
  4. What is the range of decimal numbers that can be represented in: a) 12–bit two’s–complement form? Express this range in decimal. b) 16–bit two’s–complement form? This range can be expressed in any valid manner. For example, the range for 32–bit two’s complement arithmetic can be represented as either (– 2^31 ) to (2^31 – 1) or – 2, 147, 483, 648 to 2, 147, 483, 647.
  5. Convert the following decimal numbers to binary representation. This involves separate conversion of the whole number part and fractional part; thus 6.25 would be 110.01. This is not a problem in conversion to IEEE–754 floating point standard. a) 25. b) 127. c) 31.53125 (Note 17 / 32 = 0.53125 ) d) 63.