Ask your own question, for FREE!
Computer Science 18 Online
OpenStudy (anonymous):

Write a program that uses a recursive function to encrypt a message by converting all lowercase characters to the next character (with z transformed to a). You MUST NOT use any form of loop in your program!

OpenStudy (anonymous):

/*done in c++. i have assumed that all the message contains ONLY lowercase characters..if there are other type of characters present, then simply add a filter in the if block*/ void encrypt(char message[], int index) { if (message[index]!=null) { if (message[index]=='z') message[index]='a'; else message[index]++; encrypt(message,index+1); } }

OpenStudy (anonymous):

Thank you for your help!

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!