Classes/csci218/Labs/Lab3/GarrettHaldrupD2B.txt
2024-09-09 15:21:47 -04:00

14 lines
405 B
Plaintext

1. Convert the following decimal number to binary. please show the conversion step.
For example: 89 = 64 + 0 + 16 + 8 + 0 + 0 + 1 = 0b1011001
a. 32
32 = 32 + 0 + 0 + 0 + 0 + 0 = 0b100000
b. 56
56 = 32 + 16 + 8 + 0 + 0 + 0 = 0b111000
c. 207
207 = 128 + 64 + 0 + 0 + 8 + 1 + 1 + 1 = 0b11001111
d. 127
127 = 64 + 32 + 16 + 8 + 4 + 2 + 1 = 0b1111111
e. 93
93 = 64 + 0 + 16 + 8 + 4 + 0 + 1 = 0b1011101