The objective of this assignment is to create a program that translates a standard string (English) into a secret code (encoded) based on a set of rules you define.
In computer science, data is fundamentally stored as a series of zeros and ones. To turn these bits into human-readable text, we use a mapping protocol. 1. Calculating the Bit Depth 83 8 create your own encoding codehs answers exclusive
Before coding, think about the type of encoding you want to create. Will it be a shift cipher, a substitution cipher with a key, or something more complex? The objective of this assignment is to create
var reversedMessage = decodedMessage.split("").reverse().join(""); return reversedMessage; var reversedMessage = decodedMessage
Educators and curriculum designers do not include custom encoding exercises to torture students or generate busywork. Instead, this assignment serves several critical learning objectives:
To build a robust encoding program, your code generally follows this flow:
You need to look at every letter in the input string. If the letter is in your dictionary, swap it. If it isn't, keep the original letter.