Programming Assignment 11
Writing code to crack the "code"

Due: April 30th by 11:59pm.  There are no late days (you must submit by the deadline).  Prioritize studying for the lab exam.

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:

fin = open(input_file,"r",encoding="utf-8")


Submitting your assignment

To upload your homework for grading, submit your program to the homework submission system. It will give partial credit.
Hint: First get capital letters working, then lowercase letters, then numbers, then everything else...

Congrats on submitting the last assignment of the semester!