Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In Python using a CAESAR CYPHER: USING THE ASCII TABLE (CAN BE FOUND ONLINE): USING THIS CODE SETUP: (PLEASE SHOW THE CODE THAT IS BLACKED
In Python using a CAESAR CYPHER:
1) Go to called cipher(phrase,snift) that accepts two parameters: a string phrase and an integer shift. The integer shift can be positive, negative or zero. Mentally form a ring of characters made up of the character to see what a Caesar cipher is. Write a function space (ascii code 32) through the character '(ascii code 126) in the ASCII table Shift the characters in the phrase specified by the number shift. If it is positive, shift the phrase to the right, or up. If it is negative, shift the phrase to the left, or down. Your function should be able to wrap around as well. Hence, cipher1) will yield"" and cipher 2) will yield "". Hint: there are 95 characters in the ring. That is, 95ord)-ord)+1. You may want to use the following functions in your code: ordi'A') - 65, and chrf65)-A', and " joinlrA: 8)-AB: (200 points) USING THE ASCII TABLE (CAN BE FOUND ONLINE):
USING THIS CODE SETUP:
(PLEASE SHOW THE CODE THAT IS BLACKED OUT)
YOU SHOULD GET THIS OUTPUT FOR THE PROBLEM AFTER PRINTING:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started