4
4
2 Requirements
You will individually begin developing a program, ciphers.py, that can encrypt/decrypt
messages by applying transformation operations.
1
Verify that you can see the starter code ciphers.py in the src sub-directory. Run the
program by right clicking in the source code window. It should run but do nothing.
2
will be in charge of encoding/decoding the message, but for now, it will just parse the string
of operations and print on the standard output the set of operations to apply in order. You
do not have to do anything with the message parameter yet. This function does not return
anything (you will change that later for the final lab implementation).
The format of the operation strings your program must process is as follows:
To apply a set of operations over a message, they need to be separated by semicolons. So,
for example, if you were asked to encrypt the string HORSE given the transformation string
T2,4;S4;R you would generate the string SHOES.
3
Transforming message: SHOES
Applying...
Operation Rotate (R) - Parameters:
Operation Shift (S) - Parameters: 4
Operation Trade (T) - Parameters: 2,4
2.5 Commenting
You do not need to comment your program to receive the in-lab credit. If you finish early, it
is not a bad idea to begin documenting what you have written. You can look at the resources
section of the course web page to see a style example.
3 Submission
Because of the Monday holiday, the in-lab assignment that is normally due the prior Sunday
does not need to be submitted. Only the final submission will be graded. But the dropbox
is still open in MyCourses if you want to submit to it.
Go to your project’s src folder and zip it up. Rename the zip file to in-lab1.zip. Upload
this zip to the MyCourses In-Lab Assignment dropbox by the due date.
• To zip on Windows, right click on the src folder and select Send to -> Compressed
(zipped) folder.
• To zip on MacOS, right click on the src folder and select Compress "src".