In: Computer Science
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 |
Given Sentence is
“welcome to cci college”
Based on the given text we have to find the binary values for
w,e,l,c,o,m,t,i,g,space
Converting “w” to Binary using its ASCII value – 119
Division |
Quotient |
Remainder |
Bit position |
119/2 |
59 |
1 |
0 |
59/2 |
29 |
1 |
1 |
29/2 |
14 |
1 |
2 |
14/2 |
7 |
0 |
3 |
7/2 |
3 |
1 |
4 |
3/2 |
1 |
1 |
5 |
1/2 |
0 |
1 |
6 |
(119)10 = (01110111)2
Converting “e” to Binary using its ASCII value – 101
Division |
Quotient |
Remainder |
Bit position |
101/2 |
50 |
1 |
0 |
50/2 |
25 |
0 |
1 |
25/2 |
12 |
1 |
2 |
12/2 |
6 |
0 |
3 |
6/2 |
3 |
0 |
4 |
3/2 |
1 |
1 |
5 |
1/2 |
0 |
1 |
6 |
(101)10 = (01100101)2
Converting “l” to Binary using its ASCII value – 108
Division |
Quotient |
Remainder |
Bit position |
108/2 |
54 |
0 |
0 |
54/2 |
27 |
0 |
1 |
27/2 |
13 |
1 |
2 |
13/2 |
6 |
1 |
3 |
6/2 |
3 |
0 |
4 |
3/2 |
1 |
1 |
5 |
1/2 |
0 |
1 |
6 |
(108)10 = (01101100)2
Converting “c” to Binary using its ASCII value – 99
Division |
Quotient |
Remainder |
Bit position |
99/2 |
49 |
1 |
0 |
49/2 |
24 |
1 |
1 |
24/2 |
12 |
0 |
2 |
12/2 |
6 |
0 |
3 |
6/2 |
3 |
0 |
4 |
3/2 |
1 |
1 |
5 |
1/2 |
0 |
1 |
6 |
(99)10 = (01100011)2
Converting “o” to Binary using its ASCII value – 111
Division |
Quotient |
Remainder |
Bit position |
111/2 |
55 |
1 |
0 |
55/2 |
27 |
1 |
1 |
27/2 |
13 |
1 |
2 |
13/2 |
6 |
1 |
3 |
6/2 |
3 |
0 |
4 |
3/2 |
1 |
1 |
5 |
1/2 |
0 |
1 |
6 |
(111)10 = (01101111)2
Converting “m” to Binary using its ASCII value – 109
Division |
Quotient |
Remainder |
Bit position |
109/2 |
54 |
1 |
0 |
54/2 |
27 |
0 |
1 |
27/2 |
13 |
1 |
2 |
13/2 |
6 |
1 |
3 |
6/2 |
3 |
0 |
4 |
3/2 |
1 |
1 |
5 |
1/2 |
0 |
1 |
6 |
(109)10 = (01101101)2
Converting “t” to Binary using its ASCII value – 116
Division |
Quotient |
Remainder |
Bit position |
116/2 |
58 |
0 |
0 |
58/2 |
29 |
0 |
1 |
29/2 |
14 |
1 |
2 |
14/2 |
7 |
0 |
3 |
7/2 |
3 |
1 |
4 |
3/2 |
1 |
1 |
5 |
1/2 |
0 |
1 |
6 |
(116)10 = (01110100)2
Converting “i” to Binary using its ASCII value – 105
Division |
Quotient |
Remainder |
Bit position |
105/2 |
52 |
1 |
0 |
52/2 |
26 |
0 |
1 |
26/2 |
13 |
0 |
2 |
13/2 |
6 |
1 |
3 |
6/2 |
3 |
0 |
4 |
3/2 |
1 |
1 |
5 |
1/2 |
0 |
1 |
6 |
(105)10 = (01101001)2
Converting “g” to Binary using its ASCII value – 103
Division |
Quotient |
Remainder |
Bit position |
103/2 |
51 |
1 |
0 |
51/2 |
25 |
1 |
1 |
25/2 |
12 |
1 |
2 |
12/2 |
6 |
0 |
3 |
6/2 |
3 |
0 |
4 |
3/2 |
1 |
1 |
5 |
1/2 |
0 |
1 |
6 |
(103)10 = (01100111)2
Converting “space” to Binary using its ASCII value – 32
Division |
Quotient |
Remainder |
Bit position |
32/2 |
16 |
0 |
0 |
16/2 |
8 |
0 |
1 |
8/2 |
4 |
0 |
2 |
4/2 |
2 |
0 |
3 |
2/2 |
1 |
0 |
4 |
1/2 |
0 |
1 |
Related SolutionsQ1: Using the below given ASCII table (lowercase letters) convert the sentence “welcome to cci college”...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...
The ASCII lowercase letters are separated from the uppercase letters by 32. Thus, to convert a...The ASCII lowercase letters are separated from the
uppercase letters by 32. Thus, to
convert a lowercase letter to uppercase, subtract 32 from it. Use
this information to write
a program that reads characters from the keyboard. Have it convert
all lowercase letters
to uppercase, and all uppercase letters to lowercase, displaying
the result. Make no
changes to any other character. Have the program stop when the user
enters a period. At
the end, have the program display the number...
using python The table below shows the current (2019/2020) College Football Rankings and the number of...using python
The table below shows the current (2019/2020) College Football
Rankings and the number of wins by each team.
a. Create a pandas DataFrame that stores the information in this
table and displays this.
5 points will be deducted if this is not attempted. 2
points will be deducted if it is wrong or there is a
typo
b. Display (or print out) the mean, standard deviation and maximum
of the number of wins given in this dataframe.
5...
(6 pts) Convert the data representation given below • Convert 10110111 unsigned binary representation, to decimal...
(6 pts) Convert the data representation given below
• Convert 10110111 unsigned binary representation, to decimal
representation.
• Convert 01100000101110000001010111111000 the binary
representation to a hexadecimal
representation.
• Convert 0xBAAADA55 hexadecimal representation, to a binary
representation.
2. (8 pts) Complete the following arithmetic operations in
two’s complement representation. What
are the values of the carry flag and the overflow flag?
(Assume a six-bit system)
• 31 + 11
• 13 – 15
• (-2) x (-16)
• (-15) ÷ 5
Using the cash flows given in the table below for mutually exclusive projects Alpha and Beta,...Using the cash flows given in the table below for mutually
exclusive projects Alpha and Beta, assist the Chief Financial
Officer in finding the breakeven rate (the crossover point or the
rate of indifference). Which project do you recommend if using a
cost of capital of 9% and Why?
YEAR
PROJECT ALPHA
PROJECT BETA
0
-175 000
-82 500
1
40 000
30 000
2
60 000
10 500
3
85 000
40 000
4
92 000
75 000
5...
Answer the questions below using the information given in the following table. China France Pairs of...Answer the questions below using the
information given in the following table.
China
France
Pairs of
boots
produced per
hour
4
8
Bottles of
wine per
hour
2
16
Comparative
advantage
?
?
Which country has a comparative advantage in the production of
boots?
b. Provide the range of the international relative price of wine at
which the two countries would trade.
Using the descriptions given in the figure, convert the ERD shown in Figure P6.2 into a...Using the descriptions given in the figure, convert the ERD
shown in Figure P6.2 into a dependancy diagram that is in at least
3NF.
(a) Given the information in the table below (Table 1) for three consecutive years) in an...(a)
Given the information in the table below (Table 1) for three
consecutive years) in an economy, calculate the missing data in the
table labelled (A) to (F). Also, show how you have worked out your
answer for each missing value.
Table 1
Year
Nominal
GDP
($ billion)
Real GDP
(2018 $
billion)
GDP
Deflator
(2018 =
100)
Inflation
Real GDP
per capita
(2018 $)
Population
(million)
2017
547.1
(A)
98.8
1.3
(B)
18.31
2018
(C)
540
(D)
1.2
(E)...
Using the code letters below, indicate how each of the items listed would be handled in...Using the code letters below, indicate how each of the items
listed would be handled in preparing a bank reconciliation for the
month of May for Pinar dairy Company. (8 points)
Code
A Add to cash balance per Banks
B Deduct from cash balance per Banks
C Add to cash balance per Book
D Deduct from cash balance per Book
E Does not affect the bank reconciliation
Deposits of May 30 and 31 not yet recorded by bank $9,000 and...
Using the code letters below, indicate how each of the items listed would be handled in...Using the code letters below, indicate how each of the items
listed would be handled in preparing a bank reconciliation for the
month of March for Unipal company. (8 points)
Code A Add to cash balance per Banks B Deduct from cash balance
per Banks C Add to cash balance per Book D Deduct from cash balance
per Book E Does not affect the bank reconciliation
A check for $127 written to the company by J. Chandler was
returned NSF...
ADVERTISEMENT
ADVERTISEMENT
Latest Questions
ADVERTISEMENT
|