In: Computer Science
Q1:
Using the below given ASCII table (lowercase letters) convert the
sentence “welcome to cci college” into binary values.
a - 97 |
b - 98 |
c - 99 |
d - 100 |
e - 101 |
f - 102 |
g - 103 |
h - 104 |
i - 105 |
j - 106 |
k - 107 |
l - 108 |
m - 109 |
n - 110 |
o - 111 |
p - 112 |
q - 113 |
r -114 |
s -115 |
t - 116 |
u - 117 |
v - 118 |
w - 119 |
x - 120 |
y - 121 |
z - 122 |
Space - 32 |
Q2:
What are the 16-bit 1’s and 2’s complements of the following binary numbers?
a. 01100
b. 100111100001001
1) welcome to cci college
1110111 1100101 1101100 1100011 1101111 1101101 1100101 100000 1110100 1101111 100000 1100011 1100011 1101001 100000 1100011 1101111 1101100 1101100 1100101 1100111 1100101
2)
a)01100
16bit 1's complement: 1111111111110011
2's complements : 111111111110100
b) 100111100001001
1's complement: 0011000011110110
2's complement: 0011000011110111