SHARE
SPREAD
HELP

The Tradition of Sharing

Help your friends and juniors by posting answers to the questions that you know. Also post questions that are not available.


To start with, Sr2Jr’s first step is to reduce the expenses related to education. To achieve this goal Sr2Jr organized the textbook’s question and answers. Sr2Jr is community based and need your support to fill the question and answers. The question and answers posted will be available free of cost to all.

 

#
Authors:
Linda Null ,julia Lobur
Chapter:
Data Representation In Computer Systems
Exercise:
Exercises
Question:24 | ISBN:9780763704445 | Edition: 3

Question

24.

a) Given that the ASCII code for A is 1000001, what is the ASCII code for J?

b) Given that the EBCDIC code for A is 1100 0001, what is the EBCDIC code for J?

TextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbook

Answer

a)

To determine the ASCII code for J, we can start with the ASCII code for A and increment it by 9, as J is the 10th letter following A in the alphabet.

The ASCII code for A is 1000001 in binary. Adding 9 in decimal (1001 in binary) to the ASCII code of A gives us:

1000001 (A) + 1001 (9) = 1001010

Therefore, the ASCII code for J is 1001010.

 

b)

EBCDIC (Extended Binary Coded Decimal Interchange Code) is a character encoding used in IBM mainframe systems. The mapping of characters in EBCDIC is different from ASCII.

Given that the EBCDIC code for A is 1100 0001 in binary, we can determine the EBCDIC code for J by incrementing the code for A by 9, similar to the ASCII case.

1100 0001 (A) + 1001 (9) = 1100 1010

Therefore, the EBCDIC code for J is 1100 1010.

0 0

Discussions

Post the discussion to improve the above solution.