Lab 09 - Great Caesar’s Ghost

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

Info icon This 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],
Image of page 1

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

View Full Document Right Arrow Icon
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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern