Question: gestion 4 Write a function call encrypt that has a string with all lower characters s and an integer r. It will change the string

 gestion 4 Write a function call encrypt that has a string

gestion 4 Write a function call encrypt that has a string with all lower characters s and an integer r. It will change the string by shifting each character by r letters. ('z' will loop back to 'a). You need to name your parameters s and r. You may assume all the characters in your string s are lower case letters. Excessively long solutions may lose points. A program that uses the function encrypt follows. int main({ string s1 = "college", s2 = "zoo", $3 ="abcde"; encrypt(s1,2); cout d-> e, o -> p->q, 1->m-> n, etc. encrypt($2,4); cout a ->b->c->do>p->q>r->s encrypt(:3,27); cout

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 Programming Questions!