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.
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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
