If you and a partner agree on the same custom encoding scheme, you can transmit binary messages that only you can decode. Assignment Requirements
Encoding is a process of converting information from one format to another for the purpose of secure transmission or storage. A simple form of encoding is a substitution cipher, where each character is replaced by a different character.
Before writing code, you need a plan. Let's create a simple, efficient 3-bit or 4-bit custom encoding system. For this example, we will build a 4-bit encoding map that handles the most common characters. 83 8 create your own encoding codehs answers exclusive
Test edge cases:
Let's create a simple encoding scheme. For this example, let's assume we want to encode English text. If you and a partner agree on the
This public link is valid for 7 days and shares a thread, including any personal information you added. This link or copies made by others cannot be deleted. If you share with third parties, their policies apply. Can’t copy the link right now. Try again later. 6.3.6: Create your own Encoding on codehs be confusing.
to represent A-Z and a space. Since there are 27 characters total, Before writing code, you need a plan
The encode function iterates through every letter of the string, converts it to uppercase, and looks up its binary equivalent in the encodingMap .