Hi, I don't know how to solve this. I am having problems with the 'cycle' that should occur when z is exceeded or a negative offset is placed that exceeds a. I think I would have to rethink the whole program. Sorry for my english and I hope you can help me or guide me :)
**Write a C++ program (with only if and else) to encode a letter. The encoding consists of returning the letter of the alphabet that is offset places to the right or to the left of the entered letter. The location to the right is given when the offset value is positive. On the other hand, if the offset value is negative the offset will be to the left. An offset value of 0 is considered invalid.
- In the right path, after the letter z, the letter a is considered to be coming. The same for the uppercase alphabet, if the entered letter is uppercase.
- On the left path, if the letter a is exceeded, the letter z is considered as coming. The same for the uppercase alphabet, if the letter entered is uppercase. It is required to validate that the values entered are valid:
- The value of the offset must be in the range (-26;26) and different from 0.**