COMP 122 Course Material - comp122dotcom

COMP 122 Course Material - comp122dotcom

COMP 122 EntireCourse (Devry)

Formore course tutorials visit

comp122.com

COMP 122 Lab 1 Lab Report and Source Code
COMP 122 Lab 2 Lab Report and Source Code
COMP 122 Lab 3 Lab Report and Source Code
COMP 122 Lab 4 Lab Report and Source Code
COMP 122 Lab 5 Lab Report and Source Code
COMP 122 Lab 6 Lab Report and Source Code
COMP 122 Lab 7 LabReport and Source Code

...........................................................................................
COMP 122 Lab 7 LabReport and Source Code (Devry)

Formore course tutorials visit

comp122.com

COMP 122
Week 7 iLab
The focus of this lab is on using strings. Youwill have an opportunity to work with both C style strings and the string datatype. This lab also gives you an opportunity to use what you have learnedpreviously, including using functions, array processing, repetition, andselection. You will also have an opportunity to work with file input andoutput.
You are to design and implement a program whichdoes encryption and decryption of data from files. Encryption is the process oftaking plain lines of text and performing some algorithmic transformation onthe data to create an encrypted line of text which looks nothing like theoriginal. Decryption is the process of taking an encrypted line of text andperforming some algorithmic transformation on the data to recover the originalline of plain text.
Encryption and Decryption Approach
Our approach to encryption and decryptioninvolves two strings. The first is an encryption / decryption string which wewill allow to be up to 128 lower case alphabetical characters in length. Thesecond string is a line of text from a file that is to be encrypted ordecrypted.
Our basic strategy for encrypting data is basedon mapping alphabetical characters to specific values, then doing some simplemathematical operations to create a new value. First of all, every character ineither the encryption string or the input string is mapped to a number between0...

Similar Essays