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 DayMar 03, 2021

Answer To: Write a script that gets from a user a paragraph of plaintext and a distance value. Then output this...

Pulkit answered on Mar 04 2021
148 Votes
Pyhton/2.PNG
Pyhton/caesar.pys=input("Enter paragraph \n")#read paragraph
d=int(input("Enter dista
nce :"))#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