Answered step by step
Verified Expert Solution
Link Copied!

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:
image text in transcribed
USING THE ASCII TABLE (CAN BE FOUND ONLINE):
image text in transcribed
image text in transcribed
USING THIS CODE SETUP:
(PLEASE SHOW THE CODE THAT IS BLACKED OUT)
image text in transcribed
YOU SHOULD GET THIS OUTPUT FOR THE PROBLEM AFTER PRINTING:
image text in transcribed
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)

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

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

2nd Edition

1597499471, 978-1597499477

More Books

Students also viewed these Databases questions