Assignment2 - I, Travis McPeak, pledge that this is my own...

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

View Full Document Right Arrow Icon
I, Travis McPeak, pledge that this is my own independent work, which conforms to the guidelines of academic honesty as described in the course syllabus. Travis McPeak September 25, 2008 CECS 478 Homework #2 1. Decrypt the following encrypted quotation: tebkfkqebzlropblcerjxkbsbkqp “When in the course of human events” I wrote a program to solve this problem. I put the cipher text in a file called “cipherText.txt”. I put my cipher text file along with the compiled version of the following program. Once I was finished compiling I just ran the program and visually scanned the outputs. The garbage strings were easily identified and ruled out leaving only the original plaintext message listed next to “Offset=3”. #include <iostream> #include <fstream> #include <stdlib.h> #include <cctype> #define MAX_LENGTH 1000 using namespace std; int main() { char alphabet[26] = { 'A' , 'B' , 'C' , 'D' , 'E' , 'F' , 'G' , 'H' , 'I' , 'J' , 'K' , 'L' , 'M' , 'N' , 'O' , 'P' , 'Q' , 'R' , 'S' , 'T'
Background image of page 1

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

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

This note was uploaded on 04/20/2010 for the course CECS 478 taught by Professor Englert during the Spring '10 term at CSU Long Beach.

Page1 / 2

Assignment2 - I, Travis McPeak, pledge that this is my own...

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