Question: Hello, I ' m in a c + + coding class, so far we have learned functions, loops and basic variables. Could someone show me

Hello, I'm in a c++ coding class, so far we have learned functions, loops and basic variables. Could someone show me how to code this in C++? Now that you know how to shift characters and how to get the shift value from a keyphrase, you want to implement method 1 and 2 so that
you can use these methods before your next class.
Write a function named getLayer1MessageEncryption() that encrypts a message based on the user selected encryption method.
The encryption method choices are as follow:
Shift right by 13
Shift right by mixed keys
See the overview section for description, equation and examples for the two encryption methods.
Function:
getLayer1MessageEncryption(string,
int, string, string)
Purpose:
Parameters:
Return Value:
Error Handling/Boundary Conditions:
string getLayer1MessageEncryption(string message, int method_choice, string key1,
The function should encrypt the message based on the user selected encryption method. It st
anything.
string message - The message to be encrypted.
int method_choice - The encryption method.
string key1- The first key.
string key2- The second key.
If successful, return the encrypted message.
If message is an empty string, then return the empty string.
If method_choice is outside range[1,2], then return message .
If method_choice is equal to 2 and key1 or key 2 is an empty string, then return messag
 Hello, I'm in a c++ coding class, so far we have

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!