Computer Science

Welcome to a Computational Thinking Challenge



Abstract an Algorithm
Pseudo-Code

Sample Code in Python

Tkinter Code in Python
a GUI for your code

Caesar Cipher with GUI
both programs integrated


Puzzle
Caesar Cipher for a Single Character

An anonymous client wants a program which will create a custom Caesar Shift Code.
But firstly, you must ask the user for a letter of the alphabet and encode that letter.
The program should ask the user for the key (the number of letter shifts).
Then output the coded letter.
Remember:
Caesar Shift 1 'a' -> 'b' Caesar Shift 2 'a' -> 'c' and so on.
The wraparound applies so that for Caesar Shift 2 'z' -> 'b'
The program must handle normal sentences, so capital (uppercase) letters must be encoded.



caesar shift on a single letter This User Interface is created by the "Tkinter Code in Python" program, which can be downloaded above.
Read the program to figure out generally how it works. Then try the following.

1. Copy the Tkinter code into your OFFLINE IDE and execute it to ensure it works for you.
2. Incorporate your code into the place indicated in the Tkinter program. You may have to modify some of the code, particularly inputs and outputs.
3. Test the new program to encode any letter using a Caeasar Cipher, with a cool User Interface (UI)



The sandbox below can be used to run the sample Python code or to play around with your own ideas.
Be careful of certain limitations of online IDEs compared to those downloaded to your devices.