Try out this example project and consider how you might design your own. Here is an example algorithm for the shift cipher. Do it your way.
set to blank) three variables to store inputText, shiftValue, and outputText.Ask the user to enter a plaintext message to be encoded. Set the inputText variable to the answer from the user.Ask the user to enter a shift value for the shift cipher. If their answer is a number:
Set the shiftValue variable to their answer. Ask the user if they wish to encode or decode.encode algorithm. You could:
decode reporter block on your own.encode/decode block that uses negative shift values to decode.
Encode reporter relies on a simpler reporter, Encode One Character, that encodes a single character by shifting it a given amount. This abstraction makes the code easier to manage.Encode One Character: