This program has fewer new concepts, but is of increased complexity - you will want to write functions to properly do it, and they should help prevent your brain from exploding.
Write a program that reads a file of text and prints out a pig-latin translation of that file. Pig latin is constructed according to the usual rules - which can be found at http://en.wikipedia.org/wiki/Pig_Latin. Please ask the user to type in the name of the file to be translated.
Note that this is a problem that initially seems easy, but turns out to have some tricky cases, such as dealing with "qu" and with vowels versus consonants and, if you want to be really tricky, voiced h versus silent h at the beginning of a word - "hack" becomes "ack-hay", but "honesty" should be "honesty-ay".
Good luck!
Ask me if there are any questions, and remember that elegance counts! peter@cs.uoregon.edu, or simply commenting below will all reach me immediately. Also recommended is coming in to office hours if you have any questions.
Turn your project in using the following form:
Questions? Answers!