Question: Computers store more than just numbers in binary. But how can binary numbers represent non - numbers such as letters and symbols? As it turns
Computers store more than just numbers in binary. But how can binary numbers represent nonnumbers such as letters and symbols?
As it turns out, all it requires is a bit of human cooperation. We must agree on encodings, mappings from a character to a binary number.
A simple encoding
For example, what if we wanted to store the following symbols in binary?
We can invent this simple encoding:
Binary Symbol
texttttexttt
texttt
texttt
Let's call it the HPE encoding. It helps for encodings to have names, so that programmers know they're using the same encoding.
If a computer program needs to store the symbol in computer memory, it can store
texttt instead. When the program needs to display
texttt to the user, it can remember the HPE encoding and display instead.
Computer programs and files often need to store multiple characters, which they can do by stringing each character's encoding together.
A program could write a file called msghpe" with this data:
texttttexttt
A program on another computer that understands the HPE encoding can then open msghpe" and display the sequence of symbols.
CHECK YOUR UNDERSTANDING
What sequence would the program display?
Choose answer:
Choose answer:
Choice A
A
Choice B
B
Choice C
C
Explain
The HPE encoding only uses
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
