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

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

Answer 1

Answer:

You use a decoder

Explanation:

You can find one on an internet browser


Related Questions

When identifying who will send a presentation, what are the two types of audiences?

Answers

Answer:

Explanation:Demographic audience analysis focuses on group memberships of audience members. Another element of audience is psychographic information, which focuses on audience attitudes, beliefs, and values. Situational analysis of the occasion, physical setting, and other factors are also critical to effective audience analysis.

True or false you cannot get a computer virus is you instal antivirus

Answers

Answer: F

Explanation: There are many ways hackers can get into your computer, and many ways can bypass an antivirus so it is False

This is true because if you instal antivirus is no way the computer get virus then

How SPARQL 1.1 has advantage over SPARQL 1.0??​

Answers

SPARQL 1.0 became an official W3C Recommendation on 15 January 2008. On 26 March 2013, the SPARQL Working Group has produced a new W3C Recommendation SPARQL 1.1 that introduces more features to 2008 version. SPARQL is emerging as the de facto RDF query language. Prior to SPARQL, there were some other popular RDF query languages, such as RQL, SeRQL, TRIPLE, RDQL, and so on. The comprehensive...

Write a class called MonetaryCoin that is derived from the Coin class presented in Chapter 5 (the source code for Chapter 5 examples is available via Moodle). [6 pts] Store one integer and one float in the MonetaryCoin that represent its value and weight in grams, respectively. Add a third variable of your choice (related to a coin, of course) and use self-descriptive variable names for all three variables. Pass the values to the constructor in MonetaryCoin and save them to your variables.

Answers

Answer:

Explanation:

The following Java code creates the MonetaryCoin class that extends the Coin class. It then creates three variables representing the MonetaryCoin object which are its value, weight, and coinYear. These are all passed as arguments to the constructor and saved as instance variables.

public class MonetaryCoin extends Coin {

   

   int value;

   float weight;

   int coinYear;

   

   public void MonetaryCoin(int value, float weight, int coinYear) {

       this.value = value;

       this.weight = weight;

       this.coinYear = coinYear;

   }

}

Using a tag, set the color to green for all tags.

Answers

Answer:

<style>

p {

background-color: rgb(255, 0, 0);

}

h1 {

background-color: rgb(0, 255, 0);

}

ol {

background-color: rgb(97,51,47);

}

</style>

Explanation:

Put this at the top of your code. It should target the paragraph tag, the header h1 tag, and the Ordered List (OL) tag individually and set their background colors respectively.

It's been a while since I've done CSS so you might have to tweak the syntax a bit, but it should look something like that.

how many stages needed to have powerful amplifier?​

Answers

Power amplifier stages in a real circuit. Circuit diagram of a three stage practical audio power amplifier is shown in the figure below. Small signal transistor Q1 and its associated components form the voltage amplification stage.

Answer:

Generally you should pick an amplifier that can deliver power equal to twice the speaker's program/continuous power rating. This means that a speaker with a “nominal impedance” of 8 ohms and a program rating of 350 watts will require an amplifier that can produce 700 watts into an 8 ohm load.

Consider the following method:
public static String joinTogether(int num, String[] arr)
{
String result = "";
for (String x : arr)
{
result = result + x.substring(0, num);
}
return result;
}

The following code appears in another method in the same class:
String[] words = {"dragon", "chicken", "gorilla"};
int number = 4;
System.out.println(joinTogether(number, words));

What is printed when the code above is executed?
a. dragonchickengorilla
b. drachigor
c. dragchicgori
d. dragochickgoril
e. There is an error in the program, it does not run

Answers

Answer: b.

Explanation:

Which of the following is not part of the four ways you can avoid problems with email communication?
a.
Be brief.
b.
Proofread your message.
C.
Reply right away after you get an email.
d.
Seek other ways to relay your message

Answers

Answer:

d is the correct answer for this problem

Please Fix This For Me


print ("Please enter a number between 1 and 100")
n = input

if = n < 1 and n > 100:

if = (n // 2 == 0):
print (n, "is even")

if = (n // 3 == 0):
print (n, "is odd")

else:
print("You have not entered a number between 1 and 100.")

Answers

Answer:

The correction is as follows:

n = int(input("Please [tex]enter\ a[/tex] [tex]number\ between\ 1[/tex] and 100: "))

if n < 1 or n > 100:

   print("You [tex]have\ not[/tex] entered a [tex]number\ between\ 1[/tex] and 100.")

elif n % 2 == 0:

   print (n, "is even")

else:

   print (n, "is odd")

Explanation:

See attachment for explanation

Other Questions
What jobs did free African Americans have? Jason bought 12 new CDs to add to hiscollection. The next day, his babybrother went into his room andscratched half of his CDs. He now onlyhas 56 working CDs left. How manyCDs did Jason start with? A random sample of 388 married couples found that 294 had two or more personality preferences in common. In another random sample of 566 married couples, it was found that only 38 had no preferences in common. Let p1 be the population proportion of all married couples who have two or more personality preferences in common. Let p2 be the population proportion of all married couples who have no personality preferences in common. Zach is 2 years older than Charlie who is 3 years older than Dylan. If Dylan is 2 years younger than Noah how is Zach in relation to Noah? how long has imperialism existed Help a formula word problem. Thank you if you help. You're a genuis! list 3 important facts about being healthy and fit ????????????????? I NEED HELP WITH THIS WILL GIVE BRAINLIEST Consider a hypothetical economy where there are no taxes and no international trade. Households spend $0.50 of each additional dollar they earn and save the remaining $0.50. If there are no taxes and no international trade, the oversimplified multiplier for this economy is __________Suppose that the price level in our economy remains the same and that there is still no international trade. Now, however, the government decides to implement an income tax of 5% on each dollar of income. The MPC and MPS, however, remain the same as before. In this case, after accounting for the impact of taxes, the multiplier in this economy is ___________, and a $200 billion decrease in investment spending will lead to a billion in output. Q1 . Should we ban keeping pets. ( justify.) for brainiest:):):):):):) solve the following equation x/3 +4 =7 Help What are some hip hop songs that you choreograph to(school appropriate) 1. The garden tools are covered with mud.2. Two robins are hopping around the garden.3. These pens and pencils are Amys.4. Ashley doesnt know if she is able to go with us.5. Please try to air out the room.6. The truck has powerful air brakes.7. Fresh air and exercise are essential to good health.8. Jen was very happy to see her friend.9. My, we almost didnt make it on time!10. Lara is going to the concert with us.11. My job as a designer suits me.12. How many designer suits does he own? The White House has to be guarded 24 hours a day. Five guards are ordered to split each days guard duty equally. How long, in minutes, will each guard spend on guard duty in one day? please show work What does hydroelectric power do?a.) causes thermal pollutionb.) requires building dams that can harm ecosystemsc.) uses the energy inside an atom's nucleus to generate electricityd.) releases carbon dioxide into the air A box in the shape of a rectangular prism has the dimensions shown. What is the length of the interior diagonal of the box? Round to the nearest hundredth. Enter your answer in the box. Brainliest plus 20 ptsAmanda wrote an article about a controversial subject for her high school newspaper. Her principal said the article could not be published.Which case did he most likely use to justify his decision and why? He used Brown v Board of Education because the Supreme Court decided that Brown could not publish information about civil rights if it was deemed inappropriate by the publisher. He used Miranda v. Arizona because the Supreme Court decided that a school administrator could decide if published information agreed with the school's educational mission. He used Tinker v. Des Moines because the Supreme Court would not allow students to express their beliefs and opinions at a public school. He used Hazelwood v.Kuhlmeier because the Supreme Court stated that a school administrator can censor material published at a school. Environments have changed over millions of years. Which of these would be best for a scientist to study when investigating these environmental changes?A. volcanic depositsB. weather forecastsC. fossil recordsD. ocean currents (There is no science subject so ima put mathematics) can someone tell me the notes please and ty