Words of Wisdom:

"Check out the hecka awsome darkwave music group Abney Park at: http://www.abneypark.com/vault_locked/ " - Kamakshi

Comp122 Lab 7 Lab Uop Course Homework Aid Report and Source Code

  • Date Submitted: 07/19/2015 07:27 PM
  • Flesch-Kincaid Score: 62.9 
  • Words: 1469
  • Essay Grade: no grades
  • Report this Essay
COMP122 Lab 7 Lab UOP Course Homework Aid Report and Source Code

Click Link Below To Purchase or visit homework-aid.com :


http://homework-aid.com/searchquick-submit.sc?keywords=comp122
COMP122
Week 7 iLab
The focus of this lab is on using strings. You will have an opportunity to work with both C style strings and the string data type. This lab also gives you an opportunity to use what you have learned previously, including using functions, array processing, repetition, and selection. You will also have an opportunity to work with file input and output.
You are to design and implement a program which does encryption and decryption of data from files. Encryption is the process of taking plain lines of text and performing some algorithmic transformation on the data to create an encrypted line of text which looks nothing like the original. Decryption is the process of taking an encrypted line of text and performing some algorithmic transformation on the data to recover the original line of plain text.
Encryption and Decryption Approach
Our approach to encryption and decryption involves two strings. The first is an encryption / decryption string which we will allow to be up to 128 lower case alphabetical characters in length. The second string is a line of text from a file that is to be encrypted or decrypted.
Our basic strategy for encrypting data is based on mapping alphabetical characters to specific values, then doing some simple mathematical operations to create a new value. First of all, every character in either the encryption string or the input string is mapped to a number between 0 and 25 based on its position in the alphabet.
= 0
= 1
= 25
The mapped value of a character is easily obtained by doing the following:
For lower case characters, subtract 'a' from the character.
For upper case characters, subtract 'A' from the character.
To calculate the modified value of the first character of input we add its mapped value to the...

Comments

Express your owns thoughts and ideas on this essay by writing a grade and/or critique.

  1. No comments