Question: Python-IDLE Assignment A module we will cover later this semester in CSCI 101 is on cybersecurity. For this tab, suppose you want to send a

 Python-IDLE Assignment A module we will cover later this semester in
Python-IDLE

Assignment A module we will cover later this semester in CSCI 101 is on cybersecurity. For this tab, suppose you want to send a secret message to your friend. The two of you decide upon an algorithm to encrypt the data, so that the end result would not be easy to read by others. The goal of this lab is to encrypt a message in the following way. Given five lists of characters (which are also known as strings), transform and concatenate the lists to form an encrypted message such that: . The first list of characters should be rotated right 2", which means the last two characters in the string should be moved to the front of the string Example: "Hello" -> "Hel". (You can assume the string length will be at least 2.) The second list of characters should not contain the last two characters given. Example: "coding> "codi The third list of characters should contain only the second half of the string. (You can assume the length of the string is even.) Example: "CSC1101C" -> "101C". The fourth list of characters should swap the 3rd character with the 5th character. Example: "Tracy "Tryca". (You can assume the string length will be at least 5.) The last list of characters should contain the tags that enclose the entire message. For example, if the enclosure tag provided is "co>>, the entire concatenated message will be loHelcodi 101CTryca (Include a space before and after the encrypted message.) You can assume the length of the tag is always four Lab I/O Format Throughout this semester we often use a specific Lab Input/Output Format, as we do in this lab. This format is described below: When prompting for input, use the prompt string words, where word is a single, uppercase word which describes the input. For example, this lab might choose: LISTI, LIST, LIST, LISTA, and LISTS. When providing output that will be graded, start the line with oureur. Think of this as "boxing your answer" on a math worksheet; it lets us quickly find your answer. Our grading script will skip any output lines that do not start with OUTPUT You are welcome to have other output lines that do not begin with OUTPUT: Our grading script will ignore these. Example Execution Input the five lists of characters to be encrypted. LISTIS Hello LIST2 coding LIST 3 CSC1101C LISTA TEADY LISTS > The encrypted message CUTPUT 0 Loltelcodi1010 Eyes >>

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!