Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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. image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introductory Relational Database Design For Business With Microsoft Access

Authors: Jonathan Eckstein, Bonnie R. Schultz

1st Edition

1119329418, 978-1119329411

More Books

Students also viewed these Databases questions

Question

What is the purpose for companies to use capital budgeting?

Answered: 1 week ago