Computers and Technology, 27.04.2021 01:00 cvalentine3199
You have been given an encrypted copy of the Final exam study guide here, but how do you decrypt and read it???
Along with the encrypted copy, some mysterious person has also given you the following documents:
helloworld. txt -- Maybe this file decrypts to say "Hello world!". Hmmm.
hints. txt -- Seems important.
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 .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(".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.
Another hint: Don't forget about while loops...
Mac hint: use encoding="utf-8" in your file open functions, like this:
Mac hint: use encoding="ascii" in your file open functions, like this:
fin = open(input_file,"r",encoding="ascii ")
Answers: 1
Computers and Technology, 22.06.2019 17:00
Which of the following is not contained on the slide show toolbar? a. next button b. slide button c. close button d. pen too
Answers: 2
Computers and Technology, 23.06.2019 13:00
Which of the following statements is false? a. a class can directly inherit from class object. b. if the class you're inheriting from declares instance variables as private, the inherited class can access those instance variables directly. c. a class's instance variables are normally declared private to enforce good software engineering. d. it's often much more efficient to create a class by inheriting from a similar class than to create the class by writing every line of code the new class requires.
Answers: 3
Computers and Technology, 24.06.2019 18:30
What is the local portion of the e-mail address below? [email protected] a.) @ b.) biz c.) gumchewer d.) twrigley
Answers: 1
You have been given an encrypted copy of the Final exam study guide here, but how do you decrypt and...
Mathematics, 14.10.2019 22:40
Social Studies, 14.10.2019 22:40
Social Studies, 14.10.2019 22:40
History, 14.10.2019 22:40
History, 14.10.2019 22:40
World Languages, 14.10.2019 22:40
Health, 14.10.2019 22:40
Mathematics, 14.10.2019 22:40