ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 26 May 2017 My Price 8.00

creating a basic encryption/decryption function

For this lab we are going to be creating a basic encryption/decryption function. The principle function we are writing will call an encrypt function and/or a decrypt function. Normally, I wouldn't spec the additional functions for you to write but for this lab I'm listing at least 3 functions you need to write.

Our encryption is going to be basic. If a letter is simply going to be replaced with a different letter from the alphabet. Use this scheme when encrypting or decrypting:

a == z 
b == y 
c == x 
d == w 
e == v 
f == u 
g == t 
h == s 
i == r 
j == q 
k == p 
l == o 
m == n

and so on.... (you must go all the way to z == a)

So an 'a' will be come 'z' and a 'z' will become an 'a', a 'b' will become an 'y' and an 'y' will be come a 'b', and so on. We'll only be dealing with lower case letters. Any thing that isn't a lower case letter just gets "added" to the results string. So spaces stay spaces, punctuation stays punctuation, etc.

Here's a snippet of code you can use to start that process:

string results = "";
for ( int i=0; i<input.length(); i++ )
{
    if ( input[i] == 'a' )
    {
        results = results + "z";
    }

Requirements

  1. You must write your method signatures in a file called: encrypt.h
  2. You must write the principle function with signature: void encryptDecrypt( string inputfile, string outputfile );
  3. You must write the "helper" function with signature: string encrypt( string input );
  4. You must write the "helper" function with signature: string decrypt( string input );
  5. Since my code needs to call your helper functions too, they must be declared in the header file too.

 

I need help coding in c++

Answers

(11)
Status NEW Posted 26 May 2017 04:05 AM My Price 8.00

-----------

Attachments

file 1495771819-Solutions file 2.docx preview (51 words )
H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly -----------onl-----------ine----------- an-----------d g-----------ive----------- yo-----------u e-----------xac-----------t f-----------ile----------- an-----------d t-----------he -----------sam-----------e f-----------ile----------- is----------- al-----------so -----------sen-----------t t-----------o y-----------our----------- em-----------ail----------- th-----------at -----------is -----------reg-----------ist-----------ere-----------d o-----------n -----------THI-----------S W-----------EBS-----------ITE-----------. ----------- Th-----------ank----------- yo-----------u -----------
Not Rated(0)