Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

Write a script that gets from a user a paragraph of plaintext and a distance value. Then output this paragraph into an encrypted text using a Caesar cipher. Write this text to a file called...

1 answer below »

Write a script that gets from a user a paragraph of plaintext and a distance value. Then output this paragraph into an encrypted text using a Caesar cipher. Write this text to a file called 'encryptfile.txt. Then read this file and write it to a file named 'copyfile.txt'.

Submit here the following items as ONE submission - last on-time submission will be graded:

  • .txt file
  • .py file
  • Psuedocode AND Flowchart (use Word or PowerPoint only)
Answered Same Day Mar 03, 2021

Solution

Pulkit answered on Mar 04 2021
150 Votes
Pyhton/2.PNG
Pyhton/caesar.pys=input("Enter paragraph \n")#read paragraph
d=int(input("Enter distance :"))#read distance
l=list(chr(i) for i in range(ord('A'),ord('Z')+1,1))#creating list of alphabets
s=s.upper()#convert
s2=""
for i in s:
s2=s2+(l[(l.index(i)+d)%26])#append distance to...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here