1.1.2 Assignment 3
1.1.2 Assignment 3
Q2) Letters from the alphabet are represented in a computer by the following denary (base 10) values:
A = 97
G = 103
I = 105
L = 108
N = 110
(a) Convert each of the five values to binary. The first one has been done for you
Letters Denary Value
A(97): 0 1 1 0 0 0 0 1
L (108):
I (105):
G (103):
N (110):
(2)
(b) An encryption system works by shifting the binary value for a letter one place to the left. “A” then becomes:
1 1 0 0 0 0 1 0
This binary value is then converted to hexadecimal; the hexadecimal value for “A” will be:
C2
For the two letters “L” and “G”, shift the binary values one place to the left and convert these values into
hexadecimal:
Page 1 of 2
Computer Science Assignment
1.1 Information Representation
Page 2 of 2