Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Students are going to be creating a basic encryption/decryption function. The pr

ID: 3675921 • Letter: S

Question

Students 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

Requirements

You must write your method signatures in a file called: encrypt.h

You must write the principle function with signature: void encryptDecrypt( string inputfile, string outputfile );

You must write the "helper" function with signature: string encrypt( string input );

You must write the "helper" function with signature: string decrypt( string input );

Since my code needs to call your helper functions too, they must be declared in the header file too.

can someome please just help me start. iI have no idea how to format this. This is in C++ by the way.

Explanation / Answer

#include<stdio.h>

#include<conio.h>

#include<string.h>

#include<encrypt.h>

#include<decrypt.h>

void main()

{

string 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';

char c;

printf(" Enter the string");

scanf(%s, c);

string encrypt(string a)

{

a==z;

}

string decrypt(string z)

{

z==a;

}

void encryptDecrypt(string a, string z)

{

encrypt();

printf(" The output for encryption is:", encrypt());

decrypt();

printf(" The output for decryption is:", decrypt());

}

}