Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using Python and without any Python modules NoWar.dat must be created yourself Write a python program A that reads a text file called 'NoWar.dat' containing

using Python and without any Python modules
image text in transcribed
NoWar.dat must be created yourself
Write a python program A that reads a text file called 'NoWar.dat' containing the contents of a letter addressed to Mr. Trump. The program should encrypt the contents of the file using Caesar's cipher from part 1 and then save to a file called 'Trump.dat'. The program should then send the 'Trump.dat' file to another computer running a python program B. Program B should accept the contents of the 'Trump.dat' file and save to the hard drive. Program B should then open the saved 'Trump.dat' and attempt to break the encryption by trial and error. This involves trying different keys until recognizable text is decoded. Once decoded program B should print the contents of 'NoWar.dat' to the screen. A sample of the screen shot from program B should be included in the submission along with the 'NoWar.dat' file. (Hint: finding recognizable text involves using a keywords that are likely to be present in the original letter to Mr. Trump] (Note: Any program A should be able to work with any program B and vice versa. This allows students to test their programs in a group of at least two persons. However, each student MUST write program A and B]

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

Students also viewed these Databases questions

Question

5. Understand how cultural values influence conflict behavior.

Answered: 1 week ago