Assignment 2
Instructions
This is a pen-and-paper assignment. Write down each exercise and show the work that leads to your solution (or, if not “showing” your work, explain why your solution is correct). Assume all binary numbers are in 16-bit two’s complement notation.
Exercises
- Convert $139_\text{ten}$ into binary (your answer should be shown with 16 bits).
- Convert $-139_\text{ten}$ into binary (your answer should be shown with 16 bits).
- Convert $0000 ~0010 ~0110 ~1011_\text{two}$ into decimal (note: this is a single 16-bit number, the spaces are there to make it more readable).
- Convert $1111 ~1111 ~1101 ~0111_\text{two}$ into decimal.
- Convert $0000 ~0101 ~1010 ~1110_\text{two}$ into hexadecimal.
- Convert $1111 ~1111 ~1101 ~0111_\text{two}$ into hexadecimal.
- Convert $\texttt{0x0F1A}$ into binary.
Grading
This is a 4-point assignment. See the rubric from the syllabus. Since there are many problems, half point increments may be awarded if different portions of the assignment would fit into different rubric categories.
What to turn in
Turn in one of the following:
- a physical, hand-written piece of paper with your solutions and work (bringing it to class)
- a photo/scan (or other suitable electronic format) of your solutions and work, uploaded to the Assignment 2 hand-in form on Blackboard