Lab 10: 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.java, 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.java, 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.java; and a file alice.code that contains an encoded message that can be used to test Decode.java.


Back to This Lab's Table of Contents

Forward to the Prelab Questions


Back to the Table of Contents

Back to the Introduction


Copyright 2000 by Prentice Hall. All rights reserved.