#Q3 midterm Solutions
#i)10110 from Binary to Base 10 is: 2+4+16 = 22
#ii)01110 from Binary to Two's Complement is: 01110
#iii) 10110 from 5-digit two's complement to binary is:
# impossible since this number is negative
#iv) 16 from base 10 to binary is: 10000
#v) 12 from base 10 to two's complement is: 01100