Lab 09 - Great Caesar’s Ghost

Lab 09 - Great Caesar’s Ghost - int...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CIS*1500 Computer Lab #9 “Great Caesar’s Ghost” Duration: 50 Minutes Introduction: In this lab we write the application that was introduced in the classroom lab, which will be of use to you with assignment #5. Download the file “week10_caesar.c” from the course website before you begin. We begin with writing the four functions described in the source code file. The main() function and the printUsage() functions have been provided for you. Task #1 Write the function: void encryptString(char input[MAX_STRING_LENGTH], int shiftValue); Task #2 Write the function: void decryptString(char input[MAX_STRING_LENGTH], int shiftValue); Test the function you wrote in task #1 and task #2 by creating a simple main(). Task #3 Write the function: int encryptFile(char inputFilename[MAX_FILENAME_LENGTH], char outputFilename[MAX_FILENAME_LENGTH],
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: int shiftValue); Task #4 Write the function: int decryptFile(char inputFilename[MAX_FILENAME_LENGTH], char outputFilename[MAX_FILENAME_LENGTH], int shiftValue); Task #5 - Testing 1. Use notepad to create a message and save it to a file. 2. Encrypt this file using your program (choose your own key). 3. Open the encrypted text in notepad and observe the scrambled text. 4. Decrypt this file using your program to a 3 rd file. 5. Open the decrypted file, and verify your message appears correctly. Task #6 – Code Breaking Using your program, decode the file “secretmessage_encrypted.txt” on the course website. Use trial and error to determine what the key value is. Hint: The key is between 1 and 25. You may wish to work with a partner to save time in trying all possible keys....
View Full Document

This note was uploaded on 04/17/2011 for the course CIS 1500 taught by Professor Kramer during the Fall '06 term at University of Guelph.

Page1 / 2

Lab 09 - Great Caesar’s Ghost - int...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online