Question

Answer the following questions about character encoding. a)The ASCII code for the letter E is 1000101...

Answer the following questions about character encoding. a)The ASCII code for the letter E is 1000101 , and the ASCII code for the letter e is 1100101. Given that the ASCII code for the letter M is 1001101, without looking at Table 2.7, what is the ASCII code for the letter m? b)The EBCDIC code for the letter E is 11000101, and the EBCDIC code for the letter e is 1000 0101. Given that the EBCDIC code for the letter M is 1101 0100, without looking at Table 2.7, what is the EBCDIC code for the letter m?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

a)

The ASCII codes for alphabets are the continuous number.

The ASCII code for the letter E is 1000101

ASCII code for the letter M is 1001101

The difference between these ASCII codes is given below:

ASCII code for the letter e is 1100101

There will be the same difference between the upper case alphabet and the lower case alphabet.

So, for ASCII code for letter 'm', we need to do the addition as given below:

ASCII code for the letter m is: 1101101

b)

The EBCDIC codes for alphabets are the continuous number.

EBCDIC code for the letter E is 11000101

EBCDIC code for the letter M is 1101 0100

The difference between these EBCDIC codes is given below:

EBCDIC code for the letter e is 1000 0101

There will be the same difference between the upper case alphabet and the lower case alphabet.

So, for EBCDIC code for letter 'm', we need to do the addition as given below:

EBCDIC code for the letter m is: 10010100

Add a comment
Know the answer?
Add Answer to:
Answer the following questions about character encoding. a)The ASCII code for the letter E is 1000101...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • original letter (input) Fig. 12: Graph of a code In problems 15 18, rules are given for encoding a 6 letter alphabet. F...

    original letter (input) Fig. 12: Graph of a code In problems 15 18, rules are given for encoding a 6 letter alphabet. For each problem: (a) Is the encoding rule a function? (b) Is the encoding rule one-to-one? (c) Encode the word "bad. (d) Write a table for decoding the encoded letters and use it to decode your answer to part (c). (e) Graph the encoding rule and the decoding rule. (Fig. 12 shows the graphs for the code in...

  • 1) if 01001101 is the ASCII representation for the letter M what is the representation of...

    1) if 01001101 is the ASCII representation for the letter M what is the representation of the letter O a) 01001110 b)01001001 c)01000100 d)01001111 2) which of the following is an advantage of tape technology over DVD technology a) storage capacity b) access speed c) Reliability d) CD-R 3)the symbol that shows where the next character will be typed is called a) mouse symbol b) character typing locator c)insertion point d) scroll point 4) compared with the cost to the...

  • For this assignment, you will write a program to work with Huffman encoding. Huffman code is...

    For this assignment, you will write a program to work with Huffman encoding. Huffman code is an optimal prefix code, which means no code is the prefix of another code. Most of the code is included. You will need to extend the code to complete three additional methods. In particular, code to actually build the Huffman tree is provided. It uses a data file containing the frequency of occurrence of characters. You will write the following three methods in the...

  • Qu 2: [6 Marks) (a) Information to be transmitted over the internet contains the following characters...

    Qu 2: [6 Marks) (a) Information to be transmitted over the internet contains the following characters with their associated frequencies as shown in the following table: Character abenos tu Frequency 11 6 14 12 3 132 Use Huffman Code Algorithm to answer the following questions: (i) Build the Huffman code tree for the message. (ii) Use the tree to find the codeword for each character. (iii)If the data consists of only these characters, what is the total number of bits...

  • . Huffman Encoding (a.) (6 points) Suppose a certain file contains only the following letters with the corresponding frequencies 1 AİB 73 9 30 44 130 28 16 In a fixed-length encoding scheme, cach...

    . Huffman Encoding (a.) (6 points) Suppose a certain file contains only the following letters with the corresponding frequencies 1 AİB 73 9 30 44 130 28 16 In a fixed-length encoding scheme, cach character is given a binary representation with the same number of bits. What is the minimum number of bits required to represent each letter of this file under fixed-length encoding scheme? Describe how to encode all seven letters in this file using the number of bits...

  • the w 2. This problem explores the use of a one-time pad version of t In...

    the w 2. This problem explores the use of a one-time pad version of t In this scheme, the key is a stream of random numbers between 0 and example, if the key is 3 19 5..., then the first letter of plaintext is encrypted with a shift of 3 letters, the second with a shift of 19 letters, the third with a shift of 5 letters, and so on. a. Encrypt the plaintext sendmoremoney with the key stream 9...

  • Please explain why 1010???? and also why c can be represent in that way? please draw table error...

    please explain why 1010???? and also why c can be represent in that way? please draw table error code 9:07 No SIM For an integer n greater than or equal to 0, a code g that associates it with a 4-bit code word g (n) is obtained as shown on the right, but it is assumed that the following condition is satisfied 10001 2 0011 3 0010 0110 5 0111 6 0101 7 0100 8 1100, 9 1101 . For...

  • Python: 1) Consider the following code segment: try : inputFile = open("lyrics.txt", "r") line = inputFile.readline()...

    Python: 1) Consider the following code segment: try : inputFile = open("lyrics.txt", "r") line = inputFile.readline() print(line) _____________________ print("Error") What should be placed in the blank so that the program will print Error instead of crashing if an exception occurs while opening or reading from the file? Group of answer choices a- except RuntimeError : b- except EnvironmentError : c- except IOError : d- except IndexError : 2) Consider the following code segment: line = "hello world!" parts = line.split()...

  • 4. Given below is the MIPS instruction set for the R and I format along with...

    4. Given below is the MIPS instruction set for the R and I format along with examples of some operations. The function and opcodes are given in hexadecimal system t (5 bits) funct (6 bits 20 Inst Format op (6 bits) rs (5 bits)rt (5 bits) 0 0 reg2 reg2 0 0 regl Su InstFormat op (6 bits rs (5 bits) addi regl regl re regl regl constant constant constant constant 23 2b constant InstFormat jump constant Table 1: MIPS...

  • Can someone explain how to get the answer to these two questions please? This is a...

    Can someone explain how to get the answer to these two questions please? This is a review for school. ; code fragment V Use this information and the code at the right to answer questions # 20-21. mov edx, OFFSET string mov ecx , MAXSIZE dec ecx call Readstring mov ecx, eax ; number of Given the following declarations for an IA-32 processor MAXSIZE 10 data ; digits entered ;initialize val string BYTE MAXSIZE DUP (?) mov val,0 mov esi,...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT