University stuff.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

gr1.mdn 696B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # 1
  2. a) 16#123: 0b000100100011
  3. b) 10#123: 1111011
  4. # 2
  5. a) 11011 = -00101 = -5
  6. b) 1110111 = -0001001 = -9
  7. c) 1010101 = -0101011 = -43
  8. d) 1000000001 = -0111111111 = -255
  9. e) 1111111111 = -0000000001 = -1
  10. # 3
  11. a) -31 = -011111 = ~011110 = 100001
  12. b) -32 = -0100000 = ~0011111 = 1100000
  13. c) -127 = -0111111 = ~01111110 = 10000001
  14. d) -128 = -010000000 = ~001111111 = 110000000
  15. e) -77 = -01001101 = ~01001100 = 10110011
  16. f) -22 = -010110 = ~010101 = 101010
  17. # 4
  18. a) 101 + 011 = 1000
  19. b) 111 + 111 = 1110
  20. c) 1010 + 1010 = 10100
  21. d) 11101 + 1010 = 100111
  22. e) 11111 + 11111 = 111110
  23. # 5
  24. a) 110 - 10 = 100
  25. b) 101 - 11 = 010
  26. c) 1001 - 11 = 110
  27. # 8
  28. f) xy + xy' = x * (y + y') = x * 1 = x
  29. g) (x + y) * (x + y')