Function that returns the letter 5 positions earlier | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
- 1

Function that returns the letter 5 positions earlier

Consider the following keyless encryption algorithm. For each letter in the message, substitute the letter five positions ahead in the alphabet (consider a circular alphabet, i.e., the letter following the 'Z' is the 'A'). The algorithm for deciphering is to run the same algorithm but returning the letter five positions earlier. Define the encodeCypher1 and decodeCypher1 functions that implement the described process.

5th Jan 2022, 5:34 PM
JoĆ£o Joana
7 Respostas
+ 1
Show your attempt please. This is not homework delivery service.
5th Jan 2022, 5:36 PM
Oma Falk
Oma Falk - avatar
+ 1
Yes please
5th Jan 2022, 5:42 PM
Oma Falk
Oma Falk - avatar
+ 1
Are you looking for something like this? Study this and try to understand what's going on: https://code.sololearn.com/c2gijGbEZ71R/?ref=app
5th Jan 2022, 7:20 PM
Coding Cat
Coding Cat - avatar
0
Iā€™m struggling a lot with this one and another one that Iā€™ve published, I can barely get a correct line of code on them
5th Jan 2022, 5:39 PM
JoĆ£o Joana
0
But Iā€™ll give it a shot and send it
5th Jan 2022, 5:39 PM
JoĆ£o Joana
0
Iā€™m struggling so much I canā€™t move on from here, and I know it ainā€™t that hard too https://code.sololearn.com/c4jNJ0Ikq7Ww/?ref=app
5th Jan 2022, 6:00 PM
JoĆ£o Joana
0
I just canā€™t think of a way to return the letter 5 positions ahead
5th Jan 2022, 6:01 PM
JoĆ£o Joana