subject

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 ")

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 14:00
In a file-oriented information system, a transaction file stores relatively permanent data about an entity is created and saved for backup and recovery purposes stores records that contain day-to-day business and operational data is a temporary file created by an information system for a single task
Answers: 3
question
Computers and Technology, 21.06.2019 16:00
Speed is how fast an object moves a certain distance within a length of time. how is speed calculated? a) distance/time b) time/distance c) velocity/time d) distance x time
Answers: 1
question
Computers and Technology, 22.06.2019 22:00
Perform the following tasks: a. create a class named testclass that holds a single private integer field and a public constructor. the only statement in the constructor is one that displays the message “constructing”. write a main()function that instantiates one object of the testclass. save the file as testclass.cpp in the chapter 08 folder. run the program and observe the results. b. write another main()function that instantiates an array of 10 testclass objects. save the file as test class array.c . run this program and observe the results.
Answers: 1
question
Computers and Technology, 22.06.2019 22:40
When you type the pwd command, you notice that your current location on the linux filesystem is the /usr/local directory. answer the following questions, assuming that your current directory is /usr/local for each question. a. which command could you use to change to the /usr directory using an absolute pathname? b. which command could you use to change to the /usr directory using a relative pathname? c. which command could you use to change to the /usr/local/share/info directory using an absolute pathname? d. which command could you use to change to the /usr/local/share/info directory using a relative pathname? e. which command could you use to change to the /etc directory using an absolute pathname? f. which command could you use to change to the /etc directory using a relative pathname?
Answers: 3
You know the right answer?
You have been given an encrypted copy of the Final exam study guide here, but how do you decrypt and...
Questions
question
Mathematics, 25.03.2021 14:00
question
Mathematics, 25.03.2021 14:00
question
English, 25.03.2021 14:00
question
English, 25.03.2021 14:00
question
Social Studies, 25.03.2021 14:00
question
Biology, 25.03.2021 14:00
Questions on the website: 13722359