Question: please write it in c++ with the function given. Test Harnesses ROT13p5 takes in a string of characters and encrypts it using the ROT13p5 encryption.

please write it in c++ with the function given.  please write it in c++ with the function given. Test Harnesses

Test Harnesses ROT13p5 takes in a string of characters and encrypts it using the ROT13p5 encryption. This is a combination of ROT13 for letters and ROT5 for digits. ROT13 takes each letter to the thirteenth letter following it in the alphabet. "n" encrypts to "a" and so on. The encryption for letters is: abcdefghijklmnopqrstuvwxyz nopqrstuvwxyzabcedfghijklm The encryption for digits is: 0123456789 5678901234 Given the function declaration: void ROT13p5 (string &raw); Write an appropriate test harness. Should consist of 1. testing a simple letter mapping: "abcdefg"opqrst 2. testing a simple number mapping: "98765*43210 3. testing a mixed mapping: "abc987defgnop432qrst 4, test that non-alphanumeric characters are unchanged: "?!@ #$!@ #$. After writing the test harness, now write the function ROT13p5, making sure it passes your test cases. Vector Declaration What do each of the following lines of code do? vector v1; vector v2 (3): vector (5, 3.14)

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!