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 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.

Another hint: Don't forget about while loops...

Answers

Answer 1

Answer:

                                               

Explanation:

               


Related Questions

This program exercise #4 wants the user to write a program in python that contains a list of movies titles, years and movie rating. You will need to display a menu option that allows the user to list all of the movies, add a movie, delete a movie and exit out of the program. This will be done using lists and the functions to add an element to a list and how to delete an element to a list. The program should be written utilizing functions in python for the main function, the display_menu function, the delete function, the add function and the list movie function. You can place this all in one python file or include them in various python files that include them into the main program. Let me know if you have any questions with this exercise. Output Screen: COMMAND MENU list - List all movies add - Add a movie del - Delete a movie exit - Exit program Command List: list 1. Monty Python and the Holy Grail, 1979, R 2. On the Waterfront, 1954, PG 3. Cat on a Hot Tim Roof, 1958, R Command: add Name: Gone with the Wind Year: 1939 Rating: PG Gone with the Wind was added.

Answers

Answer:

The program in Python is as follows:

def display_menu(titles,years,ratings):

   for i in range(len(titles)):

       print(str(i+1)+". "+titles[i]+", "+str(years[i])+", "+str(ratings[i]))

   

def delete(titles,years,ratings):

   del_item = input("Movie: ")

   if del_item in titles:

       print(del_item,"was deleted")

       index = titles.index(del_item)

       titles.pop(index)

       years.pop(index)

       ratings.pop(index)

   return(titles,years,ratings)

   

def add(titles,years,ratings):

   title = input("Title: ")

   year = int(input("Year: "))

   rating = int(input("Ratings: "))

   print(title,"was added")

   titles.append(title)

   years.append(year)

   ratings.append(rating)

   

   return(titles,years,ratings)

titles = []

years = []

ratings = []

print("COMMAND MENU list\nlist - List movies\nadd - Add movie del\ndel - Delete movie exit\nexit - Exit program")

menu = (input("Command List: "))

while(menu.lower() == "list" or menu.lower() == "add" or menu.lower() == "del"):

   if menu.lower() == "list":

       display_menu(titles,years,ratings)

   elif menu.lower() == "add":

       titles, years, ratings = add(titles,years,ratings)

   elif menu.lower() == "del":

       titles, years, ratings = delete(titles,years,ratings)

   menu = (input("Command List: "))

   elif menu.lower() == "exit":

       break

print("Exited!!!")

Explanation:

See attachment for complete program where comments are used to explain some lines of the program

What is the hamming distance between the following bits? Sent
bits: 101100111, Received bits: 100111001
Select one: 5. Or 3 or 6 or4​

Answers

I think

the hamming distance between the following bits its 5

3.4 code practice question 2 edhesive

Answers

???????????????????
Is there more to this question??

Factory Design Pattern Assignment This assignment will give you practice in using the Factory/Abstract Factory Design Pattern. You are going to create a Terraforming program. What does terraform mean

Answers

Answer:

Terraform is an open-source infrastructure as code software tool that enables you to safely and predictably create, change, and improve infrastructure.

what is the best plugin for subscription sites?

Answers

Answer:

Explanation:

MemberPress. MemberPress is a popular & well-supported membership plugin. ...

Restrict Content Pro. ...

Paid Memberships Pro. ...

Paid Member Subscriptions. ...

MemberMouse. ...

iThemes Exchange Membership Add-on. ...

Magic Members. ...

s2Member.

Other Questions
I hope you can see everything. Please Answer ASAP 45 point and brain list. what is the area of the white box Question 5 By the end of Reagans term in office, relations with the Soviet Union had:a. improved significantly.b. become increasingly tense.c. become quite violent.d. remained the same. plzzz help !!!1) How did women and minorities join in the war effort? (a) Women:(b) Minorities:2) What actions did the government take in the following areas? (a) Controlling inflation:(b) Shrinking supplies:(c) Threat of destructive weapons:3) How did women and minorities contribute to the wartime work force?4) How did WWII affect the following groups at home? (a) African Americans:(b) Mexican Americans:(c) Native Americans:5) What reason was given for the internment of Japanese Americans?-1) What were Joseph Stalins goals for the Soviet Union, and what actions did he take to achieve them?2) What dictator created Italys totalitarian state, and how did he do this?3) What were the main ideas behind Hitlers political philosophy?4) How were military actions in Japan and Spain similar to those of Stalin, Mussolini, and Hitler?5) How did Hitler begin to expand Germanys territory?6) Why did Neville Chamberlain sign the Munich Pact? Why did Winston Churchill oppose it?7) What happened to Poland as a result of the invasion, and how did Britain and France respond to it?8) What type of battle was the Battle of Britain, and why was Englands victory so Important? How can you Divide the number 30 into 4 equal parts? Or can you? Match each industry to the appropriate technical writer job description.Manufacturing Health care Government agencies Write scientific articles as well as protocol and regulatory documents for laboratories.Write specifications of all raw materials and finished products.Write and edit policy manuals for a special unit of the US military forces. What is the slope of the line through (5,2) and (6,7) in the standard (x,y) coordinate plane?9955-5-55115 over 11511 PLEASEEEEEE HEELLLPPP MEEEE!!!! helppppppppp id.k this In the right triangle shown, m In art, pattern and repetition are used to create _______. DONT SAY UNITY ITS NOT ONE OF THE ANSWERS FOR ME What is the value of the fraction below?21/0A. UndefinedB.0PLEASE HELP Why you think the compromises regarding the expansion of slavery were followed? HELP ME PLEASE I NEED THIS BY TODAY 4/27/21 The length of a rectangle plus its width is 18 cm. The area is 80 sq cm. what are the length and width of the rectangle? Read the excerpt from "To Save a Turtle."Moments after Marnie got into her bed, though, Brenda got out of hers. She pulled a jacket on over her pajamas and went very quietly out of the big sleeping room. Then she started down the trail to the beach. The moon was full and bright, and she could easily see where she was going.Which statement best summarizes the excerpt?A: Brenda puts on a jacket over her pajamas.B: Brenda sneaks out of the sleeping room.C: Brenda can see where she is going.D: Brenda goes down to the beach.Hint - It's not B because I just took the test and it was wrong.Therefore, I would go with D Someone help NO LINKS/WEBSITES PLZ and I will mark brainiest if its right :) I'll give brainlyist to anyone that can help qvq Complete the statement about WYSIWYG editors when you use a WYSIWYG editor you typically specify the continent and blank A.layout B.Html Code C. Meta tags while the editor generates the blank A.layout B. Html code C. Meta tags how do some cells beomce brain cells and others become skin cells, when the dna in all the cells is exactly the same. In other words, if the instructions are exactly the same, how does one become a brain cell and another a skin cell? What type of reaction results in the formation of a salt?