Program Requirements: You will develop a program capable of encrypt and decrypting text using Caesar cipher. In order to do this, you will be required to implement several functions, specified in the template provided. Once complete, your programs main() method should do the following: 1. Prompt users to select a mode (encrypt or decrypt). 2. Check if the mode the user entered is valid. If not, continue to prompt the user until a valid mode is selected.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question


Program Requirements:
You will develop a program capable of encrypt and decrypting text using Caesar cipher. In order
to do this, you will be required to implement several functions, specified in the template
provided.
Once complete, your programs main() method should do the following:
1. Prompt users to select a mode (encrypt or decrypt).
2. Check if the mode the user entered is valid. If not, continue to prompt the user until a
valid mode is selected.
3. Prompt the user for the message they would like to encrypt or decrypt.
4. Encrypt or decrypt the message as appropriate and print the output.
5. Prompt the user whether they would like to encrypt or decrypt another message.
6. Check if the user has entered a valid input (y/n) If not, continue to prompt the user until
they enter a valid response. Depending upon the response you should either:
a. End the program if the user selects no.
b. Proceed directly to step 2 if the user says yes.
You should use a loop to keep the programming running if the user says that he/she would like
to encrypt or decrypt more messages.
Your program should handle both uppercase and lowercase inputs. You can use
str.upper() and str.lower() to convert strings to a specific case. However, you should
only output only uppercase messages.

Please, I'm begging you use Python as Java is literally 0 use for me, the template is a MUST, A MUST, so anything else is not helful for me at all, please use Python as this is my 3rd attempt to get help with it in Python and all I receive is Java. Thank you 

Full Implementation (user input in red)
Welcome to the Caesar Cipher
This program encrypts and decrypts text using Caesar Cipher.
Would you like to encrypt (e) or decrypt (d): d
Would you like to read from a file (f) or the console (c)? c
What message would you like to decrypt: LIPPS ASVPH
What is the shift number: 4
HELLO WORLD
Would you like to encrypt or decrypt another message? (y/n): y
Would you like to encrypt (e) or decrypt (d): e
Would you like to rea from a file (f) or the console
What message would you like to encrypt: Hello World
What is the shift number: 4
(c) ? c
LIPPS ASVPH
Would you like to encrypt or decrypt another message? (y/n): y
Would you like to encrypt (e) or decrypt (d): e
Would you like to read from a file (f) or the console (c) ? f
Enter a filename: something_silly.txt
Invalid Filename
Enter a filename: messages.txt
What is the shift number: 4
6
Output written to results.txt
Would you like to encrypt or decrypt another message? (y/n): n
Thanks for using the program, goodbye!
Transcribed Image Text:Full Implementation (user input in red) Welcome to the Caesar Cipher This program encrypts and decrypts text using Caesar Cipher. Would you like to encrypt (e) or decrypt (d): d Would you like to read from a file (f) or the console (c)? c What message would you like to decrypt: LIPPS ASVPH What is the shift number: 4 HELLO WORLD Would you like to encrypt or decrypt another message? (y/n): y Would you like to encrypt (e) or decrypt (d): e Would you like to rea from a file (f) or the console What message would you like to encrypt: Hello World What is the shift number: 4 (c) ? c LIPPS ASVPH Would you like to encrypt or decrypt another message? (y/n): y Would you like to encrypt (e) or decrypt (d): e Would you like to read from a file (f) or the console (c) ? f Enter a filename: something_silly.txt Invalid Filename Enter a filename: messages.txt What is the shift number: 4 6 Output written to results.txt Would you like to encrypt or decrypt another message? (y/n): n Thanks for using the program, goodbye!
# A Caesar Cipher Program
import os.path
def welcome ():
# add your code here
return
def enter_message():
mode = ''
message =
shift = 0
# add your code here
return (mode, message, shift)
def encrypt (message, shift):
# add your code here.
return
def decrypt (message, shift):
# add your code here
return
def process_file(filename, mode, shift):
list_messages = []
# add your code here
return list_messages
def write_messages (lines):
# add your code here
return
def is file (filename):
return False
def message_or_file():
11
MUST
USE
TEMPLATE
mode=
filename = None
message
None
shift = 0
# add your code here
return (mode, message, filename, shift)
Transcribed Image Text:# A Caesar Cipher Program import os.path def welcome (): # add your code here return def enter_message(): mode = '' message = shift = 0 # add your code here return (mode, message, shift) def encrypt (message, shift): # add your code here. return def decrypt (message, shift): # add your code here return def process_file(filename, mode, shift): list_messages = [] # add your code here return list_messages def write_messages (lines): # add your code here return def is file (filename): return False def message_or_file(): 11 MUST USE TEMPLATE mode= filename = None message None shift = 0 # add your code here return (mode, message, filename, shift)
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY