Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please do not use a loop, just use find() function to solve it. TY. Write a program which encrypts a word using a Caesar cipher.

Please do not use a loop, just use find() function to solve it. TY.

image text in transcribed

Write a program which encrypts a word using a Caesar cipher. Name your program 'YourUsernameA102.py', e.g. dazh001A102.py A Caesar cipher is a simple and well known encryption technique, where each letter in the original message is replaced by a letter a certain number of positions down the alphabet. You will be using a Caesar cipher with a shift of 5. In other words the letter "a" would be replaced by the letter "f" while the letter "x" would be replaced by the letter "c" Your program should use the following two variables initialized to the values specified below: alphabet"abcdefghijklmnopgrstuvwxyz" shift-5 The user will enter a 5 letter word to be encrypted by the Caesar cipher. You can assume that the word will always consist of 5 alphabetical characters only. Two example outputs using the completed program follow. Your program must give the output in the same format as the outputs in these two examples. *Caesar Cipher Encryption* Please enter a 5 letter word: Damir Encrypted word: ifrnw *Caesar Cipher Encryption* Please enter a 5 letter word: kazoo Encrypted word: pfett

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions

Question

Q1).Sketch the [ 2 0j direction in a simple cubic lattice [10]

Answered: 1 week ago

Question

What are the objectives of performance appraisal ?

Answered: 1 week ago

Question

State the uses of job description.

Answered: 1 week ago

Question

Explain in detail the different methods of performance appraisal .

Answered: 1 week ago