Lab 8: Instructor's Notes
Today's exercise has students encode and decode the characters in
a file using the Caesar cipher.
The exercise has two parts:
-
In the first part, the exercise helps students complete the file
encode.cpp,
which contains a program that encodes a message using the
Caesar cipher.
-
In the second part, students apply what they have learned in
the first part to complete
decode.cpp,
which contains a program to decode a message encoded using
the Caesar cipher.
Also provided is a file
message.text,
which contains a simple message that can be used to test
encode.cpp; and a file
alice.code
that contains an encoded message that can be used to test
decode.cpp.
If you wish to avoid network contention and delays,
save copies of these files locally ahead of time,
and instruct your students on how to access them.
|
|
|
|
Home
Help
Lab 0
Lab 1
Lab 2
Lab 3a
Lab 3b
Lab 4
Lab 5
Lab 6
Lab 7
Lab 8
Lab 9
Lab 10
Lab 11
Lab 12
Lab 13
Membership
Login |