Question: Could somebody please help me with this C++ program? And here is the linked function string translate(string s) { string output = ; for (int

Could somebody please help me with this C++ program?

Could somebody please help me with this C++ program? And here is

And here is the linked function

string translate(string s) { string output = ""; for (int i = 0; i = 'a' && c = 'A' && c = 'n' && c = 'N' && c

}

create a program that encrypts and decrypts text files, using a simple ROT13 algorithm (a function that translates a string using the algorithm is linked in the assignment). Your program should: A. Provide a menu of options (ENCRYPT, DECRYPT, QUIT) B. Loop until a user selects QUIT C. If ENCRYPT is selected, ask the user for 1. a text file to be encrypted and 2. the name of a file to contain the output. Open the input file and use the provided function to translate a line of the file at a time, writing the translated line to the output file. Remember that getline can be used to get one line of input with spaces at a time, for example, the code below will loop until no more lines can be read string line; while (getline (infile, line)) D. If DECRYPT is selected, reverse the process, asking the user for 1. a text file to be decrypted and 2. the name of a file to contain the output. You will have to figure out how to decrypt the input. (HINT: this is quite easy, think of how many letters there are in the alphabet

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!