Skip Navigation

Arithmetic Assignment

For this assignment, you will demonstrate subtraction using nine’s complement arithmetic in decimal and show how to perform bit shifts in binary.

Page Contents

Background Material

Requirements

Prepare a video presentation in which you solve the following problems. SHOW ALL WORK. You can record the video using your cell phone and do the work on pencil and paper, or you can use screencasting software and do the work on the computer screen.

Part A

For each of the following problems, show how to perform subtraction using diminished radix complement in decimal (in other words, nine’s complement):

  1. 12 - 7
  2. 10 - 10
  3. 147 - 61
  4. 2278 - 1152
  5. 51 - 6
  6. 10 - 24
  7. 121 - 399
  8. 200 - 300
  9. 9 - 10
  10. 7 - 77

Part B

This section uses special notation borrowed from the Java programming language:

Show how to perform each of the following shift operations:

  1. 0000 << 2
  2. 0001 << 2
  3. 1001 << 1
  4. 1100 << 1
  5. 1111 << 4
  6. 0010 >>> 1
  7. 0010 >> 1
  8. 1001 >>> 3
  9. 1001 >> 3
  10. 1111 >>> 4

Grading

Please review the Numbers and Arithmetic Rubric before submitting this assignment to Moodle.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.