Students will create a few algorithms to encode and decode messages.
There are many ways to encode messages so only designated recipients can read them. Secret codes have been used for thousand of years by government, spies, crooks and good guys to send messages across “enemy” lines.
This activity is based on text manipulation - because this is what encoding is all about.
Students will code the computer to:
Create a text box which will contain the clear (readable) message.
Create an algorithm (a method) for encoding (scrambling) the message.
“do something special” to every character of the clear message, in order to generate the encrypted message.
also create a “decode” algorithm in order to process the encoded message and retrieve the original “clear” message.
Grades: 3 - 10
Time: maybe 3 60 minute sessions
Math C3. solve problems and create computational representations of mathematical situations using coding concepts and skills
C3.1 solve problems and create computational representations of mathematical situations by writing and executing code, including code that involves sequential, concurrent, repeating, and nested events
C3.2 read and alter existing code, including code that involves sequential, concurrent, repeating, and nested events, and describe how changes to the code affect the outcomes
C3.1 solve problems and create computational representations of mathematical situations by writing and executing code, including code that involves conditional statements and other control structures
C3.2 read and alter existing code, including code that involves conditional statements and other control structures, and describe how changes to the code affect the outcomes
C3.1 solve problems and create computational representations of mathematical situations by writing and executing efficient code, including code that involves conditional statements and other control structures
C3.2 read and alter existing code, including code that involves conditional statements and other control structures, and describe how changes to the code affect the outcomes and the efficiency of the code
C3.1 solve problems and create computational representations of mathematical situations by writing and executing efficient code, including code that involves events influenced by a defined count and/or sub-program and other control structures
C3.2 read and alter existing code, including code that involves events influenced by a defined count and/or sub-program and other control structures, and describe how changes to the code affect the outcomes and the efficiency of the code
C3.1 solve problems and create computational representations of mathematical situations by writing and executing code, including code that involves the analysis of data in order to inform and communicate decisions
C3.2 read and alter existing code involving the analysis of data in order to inform and communicate decisions, and describe how changes to the code affect the outcomes and the efficiency of the code