Question: help in python COSC 1306 Assignment #7 Objective: Practice using dictionaries with strings, loops, functions, and conditional execution Description: In this assignment you will create

help in python

help in python COSC 1306 Assignment #7 Objective: Practice using dictionaries with

strings, loops, functions, and conditional execution Description: In this assignment you will

COSC 1306 Assignment #7 Objective: Practice using dictionaries with strings, loops, functions, and conditional execution Description: In this assignment you will create a program that can ask the user to input a code word and then use that word to encrypt a given message using the Vigenre cypher. The Vigenre cypher uses a code word to scramble a plain-text message into an encrypted message Generally, only alphabet characters are encrypted, and non-letters are normally removed. For our purposes, we will simply copy punctuation and spaces from the plain-text to the cypher-text only the letters will be encrypted. Upper-case letters are encrypted to upper-case and lower- case to lower-case. To perform the encryption on some text, each letter in the text is matched with a letter in the secret code. The letter in the secret code determine the offset applied to corresponding letter in the plain-text. Each code letter produces an offset, for example A" represents an offset of 0, "B" an offset of 1, "C" an offset of 2 and so on. A letter in plain-text, say "m" is encrypted by a code letter of "A" to "m", by "B" to "n", by "C to "o and so on. The encryption that offsets a letter past "z" wraps back around to start with "a". Your program must meet the following requirements 1. Include a multi-line comments at the top of the file with your name, PSID number, and the assignment number 2. Your program should ask the user for a code word. The code word need not be an actual word, but must be composed of letters 3. Your program should use a function to encrypt the given text with the specified code word and then display the resulting cypher-text ONLY 4. Your program should only encrvpt the letters in the plain text, non-letters should simply be copied to the cypher-text. Letters should retain their case when encrypted Hint: Test your code often and ask questions Deadline: Monday, April 9, 2018, 11:59PM Example Output: For example, the plain text might be A test string, just for practice - here in Houston. Using the code word: SECRET Would yield a cypher-test that reads S xgjx 1lvkek, cmwv wsk hvctxbui - jvvx ar Jfyllsp

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!