python assignment

profilepeekay
Homework1-2.pdf

Homework #1 1. Translate the following positive base 10 integers into binary, octal and hexadecimal. (Show all

your work) a. 101 b. 35 c. 201 d. 87

2. Convert the following base 10 SIGNED integers into binary (8bits.) Show all your work

a. -15 b. -116 c. 91 d. -47

3. Convert the following base 10 signed integers to binary using 6 bits and perform the binary arithmetic.

-8 11 -17 -3

-11 -3 +12 +10 --- --- --- --- 4. Give the base 10 and base 16 values of the following SIGNED binary numbers: a. 11110100 b. 00010011 c. 11011100