Lecture notes for the Introduction to Computer Science for non-majors by James Tam | Return to the course web page |
Score | 50-51 | 48-49 | 44-47 | 40-43 | 36-39 | 31-35 | 27-30 | 23-26 | 18-22 | 13-17 | 8-12 | 0-7 |
Letter | A | A- | B+ | B | B- | C+ | C | C- | D+ | D | D- | F |
Answer:
11110 | 10100 | 10000 | |||
+11010 | -01010 | -00010 | |||
Binary result |
Number system |
|||
Original binary value |
Ones complement value |
Twos complement value |
|
First example | 010010 | ||
Second example | 100111 | ||
Third example | 111111 |
One's complement approach | ||||
710 | ||||
- | 510 |
Answer (Ones complement):
Answer (Binary):
Answer (Decimal):
One's complement approach | ||||
-510 | ||||
-510 |
Answer (Ones complement):
Answer (Binary):
Answer (Decimal):
Two's complement approach | ||||
310 | ||||
- | 410 |
Show your work here:
Answer (Twos complement):
Answer (Binary):
Answer (Decimal):
Number input | Mantissa | Exponent |
63851 | ||
1050 | ||
645367 |
T F T F F AND F F T T F T F T F F OR F F T T F T F T F F XOR T F T F F T F T F F NOT T F T F F NAND F F T T F T F T F F NOR F F T T F
As a reminder, you are not allowed to work in groups for this class. Copying the work of another student will be regarded as academic misconduct (cheating). For additional details about what is and is not okay for this class please refer to the following link