Assignment 3

Due 11pm Wednesday, August 2

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!

Boilerplate

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 It In

Turn your project in using the following form:

What is your student #?
What is your name?
What is your email?
What file would you like to submit?
If you have more than one file in your project, please use an archiving tool to put them all into one archive file. Acceptable archive types are .zip, .jar, .tar, and .tgz.

Please make sure that you provide any README files in plain text. MS Word .doc files are not acceptable. .html, .txt, .ps, .dvi, and .pdf are all acceptable. Really you should just be turning in ASCII text (.txt) files and source code. And for most assignments, just well documented source code.

Comments and Clarifications

The admin should touch /cs/classweb/06U/cis122/3.comment

Questions? Answers!
Valid CSS! Valid XHTML 1.1!