Question
Use Python Programing. You have been given an encrypted copy of the Lab 2 study guide here ( http://www.cs.uni.edu/~diesburg/courses/cs1510_sp17/homework/PA11/superDuperTopSecretStudyGuide.txt ), but how do you decrypt
Use Python Programing.
You have been given an encrypted copy of the Lab 2 study guide here (http://www.cs.uni.edu/~diesburg/courses/cs1510_sp17/homework/PA11/superDuperTopSecretStudyGuide.txt), but how do you decrypt and read it???
Along with the encrypted copy, some mysterious person has also given you the following documents:
http://www.cs.uni.edu/~diesburg/courses/cs1510_sp17/homework/PA11/helloworld.txt-- Maybe this file decrypts to say "Hello world!". Hmmm.
http://www.cs.uni.edu/~diesburg/courses/cs1510_sp17/homework/PA11/hints.txt-- Seems important. (Hint)
In a file called pa11.py write a method called decode(inputfile,outputfile). Decode should take two parameters - both of which are strings. The first should be the name of an encoded file (either helloworld.txt or superdupertopsecretstudyguide.txt or yet another file that I might use to test your code). The second should be the name of a file that you will use as an output file. For example:
decode("superDuperTopSecretStudyGuide.txt" , "translatedguide.txt")
Your method should read in the contents of the inputfile and, using the scheme described in the hints.txt file above, decode the hidden message, writing to the outputfile as it goes (or all at once when it is done depending on what you decide to use).
Hint: The penny math lecture is here(http://www.cs.uni.edu/~diesburg/courses/cs1510_sp17/sessions/s18/s18.html).
Another hint: Don't forget about while loops...
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