CSCI 150, Spring 2003
Home | | Course Schedule | | Assignments | | Lecture NotesLab 8 solution
Problem 1: Binary additionDecimal | Binary | Hexadecimal |
53 | 00110101 | 35 |
27 | 00011011 | 1B |
53 = 00110101
(Check: 1 + 4 + 16 + 32 = 53)
27 = 00011011
(Check: 1 + 2 + 8 + 16 = 27)
b) Find the sum of 00111011 and 00011101:
c) Find the decimal forms of each off the binary numbers and the sum in part b:
00111011 = 59
00011101 = 29
01011000 = 88
d) Write 89 and -37 in 2's complement representation. Show how to subtract 37 from 89:
Decimal | Two's Complement |
89 | 01011001 |
-37 | 11011011 |
e) Largest possible positive integer with two's complement representation:
Problem 2: Logic Expression and truth table for given circuit: