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:

  1. 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.
  2. 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.


Back to This Lab's Home Page

Forward to the Prelab Questions


Copyright 1998 by Joel C. Adams. All rights reserved.