myencrypt mode key plaintext mydecrypt mode key ciphertextHere, key, plaintext, and ciphertext are all CAPITALIZED words, and mode is -v for the Vigenère cipher, -b for the Beaufort cipher, and -r for the Variant Beaufort cipher (also called the Reverse Beaufort cipher). If any command line argument is malformed, or an error occurs in your code, print an appropriate error message and exit with an exit code of 1. Otherwise, exit with an error code of 0. Please write your code robustly, and comment it!
Submitting your programs. If you write your programs in a compilable language (like C), you must submit a makefile to compile your source code. A single make should generate both myencrypt and mydecrypt executables. Do not submit myencrypt or mydecrypt executables unless they are written in a scripted language (such as shell script or Perl). Your program should run correctly on any of the CSIF machines (that is, on the DECs, the HPs, and the SGIs).
Department of Computer Science
University of California at Davis
Davis, CA 95616-8562