Please enable JavaScript.
Coggle requires JavaScript to display documents.
Caesar Code Components, Encode, Decode, If the character is not a letter,…
Caesar Code Components
Welcome user
Ask if user wants to encode or decode
Establish variables
create letter list
Create loop
If the user types end the program ends
Encode
identify the number of the letter in the list
return to start of loop
Break the loop
Ask user to enter code to decode
create loop
check if the character is a letter
Add the new letter to a variable
Collect input
reset the variable
match X with a letter
Identify the letter 3 letters down in the list
identify the first character of the code X
Repeat until all characters of the input have been transferred to the variable
Identify number of characters in code
print the variable
Make sure the letter is lowercase
Decode
identify the first character of the code X
Identify the letter 3 letters up in the list
match X with a letter
Ask user to enter code to decode
Identify number of characters in code
create loop
check if the character is a letter
Collect input
identify the number of the letter in the list
Add the new letter to a variable
Repeat until all characters of the input have been transferred to the variable
Break the loop
print the variable
reset the variable
return to start of loop
Make sure the letter is lowercase
If the character is not a letter
add the character to a variable
If the character is not a letter
add the character to a variable