Here is an example algorithm for the shift cipher. Do it your way.
setto blank) three variables to store inputText, shiftValue, and outputText.
Askthe user to enter a plaintext message to be encoded.
Setthe inputText variable to the answer from the user.
Askthe user to enter a shift value for the shift cipher.
is a number:
Setthe shiftValue variable to their answer.
Askthe user if they wish to encode or decode.
encodealgorithm. You could:
decodereporter block on your own.
encode/decodeblock that uses negative shift values to decode.
Encodereporter 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: