Cash-back offer from May 2nd to 7th, 2024: Get a flat 10% cash-back credited to your account for a minimum transaction of $50.Post Your Questions Today!

Question DetailsNormal
$ 24.00

For this lab we are going to be creating a basic encryption/decryption function

Question posted by
Online Tutor Profile
request

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.

 

Available Answer
$ 24.00

[Solved] For this lab we are going to be creating a basic encryption/decryption function

  • This solution is not purchased yet.
  • Submitted On 18 Mar, 2016 01:43:24
Answer posted by
Online Tutor Profile
solution
complete solutions correct answers key 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 goi...
Buy now to view the complete solution
Other Similar Questions
User Profile
Tutor...

Byzantine Discussion

The visual symbol that I choose is the dove. “The dove is said to represent the holy spirit or the holy ghost in Christianity. The Dove is also a symbol of peace” (Fairchild 2016)....
User Profile
termp...

6 2 Short essay.docx PSY 321 Module Six Essay PSY 321 SNHU The question for this week

6 2 Short essay.docx PSY 321 Module Six Essay PSY 321 SNHU The question for this week™s topic is, what are the advantages and disadvantages of mainstreaming and full inclusion for children with learning or behavioral di...
User Profile
termp...

HU245_08_Unit2_Assignment2.docx(1) HU245-08 Unit 2 Assignment 2 For this assignment,

HU245_08_Unit2_Assignment2.docx(1) HU245-08 Unit 2 Assignment 2 For this assignment, I found a news article released by the Honolulu Civil Beat. This story reports that the Honolulu Police Department or HPD, has spent $...
User Profile
termp...

BU 204 Unit_6_Assignment.docx Macroeconomics BU204 For this assignment I have chosen

BU 204 Unit_6_Assignment.docx Macroeconomics BU204 For this assignment I have chosen Australia as my advanced economy and the Philippines as my developing country. I choose these two countries because they are quite diff...
User Profile
termp...

Hand hygiene task 1 Hand hygiene task 1 Intended Audience My ideal audience for this sp

Hand hygiene task 1 Hand hygiene task 1 Intended Audience My ideal audience for this speech would be anyone in the healthcare industry that encounters patients on a daily basis. This topic would also be beneficial to any t...

The benefits of buying study notes from CourseMerits

homeworkhelptime
Assurance Of Timely Delivery
We value your patience, and to ensure you always receive your homework help within the promised time, our dedicated team of tutors begins their work as soon as the request arrives.
tutoring
Best Price In The Market
All the services that are available on our page cost only a nominal amount of money. In fact, the prices are lower than the industry standards. You can always expect value for money from us.
tutorsupport
Uninterrupted 24/7 Support
Our customer support wing remains online 24x7 to provide you seamless assistance. Also, when you post a query or a request here, you can expect an immediate response from our side.
closebutton

$ 629.35