Docsity

Cosc 2150 Assignment 2: Arithmetic in Binary with Two's Complement - Prof. James S. Ward, Assignments of Computer Architecture and Organization

Toggle sidebar
bg1
Cosc 2150 Assignment 2
Due: Sept 14, 2009
Work out the following arithmetic in binary. Convert each number to a 5 bit binary
number and convert the answer back to Base10. Show all your work. Also state whether
there was a carry and an overflow. Use two complement algorithms for all the
arithmetic, even if both numbers of positive. Write neatly, if I can’t read it, then it is
wrong.
1 through 6 is worth 2 points each.
1. 4 2. 8 3. 15 4. -5 5. -6 6. 10
+3 +5 -6 -5 +6 +7
The multiplication is worth 4 points each. (YOU MUST use booth’s algorithm)
7. 8 8. -6
x5 x4
Extra credit (optional)
9. The division is worth 2 extra credit points.
12 ÷ 4

Partial preview of the text

Download Cosc 2150 Assignment 2: Arithmetic in Binary with Two's Complement - Prof. James S. Ward and more Assignments Computer Architecture and Organization in PDF only on Docsity!

Cosc 2150 Assignment 2 Due: Sept 14, 2009 Work out the following arithmetic in binary. Convert each number to a 5 bit binary number and convert the answer back to Base10. Show all your work. Also state whether

there was a carry and an overflow. Use two complement algorithms for all the

arithmetic, even if both numbers of positive. Write neatly, if I can’t read it, then it is wrong. 1 through 6 is worth 2 points each.

  1. 4 2. 8 3. 15 4. -5 5. -6 6. 10 +3 +5 -6 -5 +6 + The multiplication is worth 4 points each. (YOU MUST use booth’s algorithm)
  2. 8 8. - x5 x Extra credit (optional)
  3. The division is worth 2 extra credit points. 12 ÷ 4