Project 2 - Version 1.0
History Sleuths!
Due Friday November 2nd


O. No Longer The Latest Version

This is no longer the latest version of the project. The latest version is located here!

I. Introduction

You have just been approached by a world famous UW history professor. He would like you to settle a centuries-old debate on who wrote Shakespeare's plays, Shakespeare or Sir Francis Bacon? You protest that this question is surely outside of your area expertise. "Oh, no," chuckled the historian, stroking his snowy white beard. "I need a Computer Scientist!"
 

II. Word Frequency Analysis

The professor suspects that some authors use particular words more often than others. He hopes that if we study the frequency with which authors use words, we may be able to come up with a word usage "signature" for that author. This signature should be quite consistant across a particular author's works, but vary greatly between authors.

The professor wants you to take two works of Shakespeare (Hamlet, and All's Well That Ends Well), and two of Bacon (The New Atlantis, and The Essays), and count the number of times that each word occurs in each. He would like you write a program that takes two commmand line arguments. The first argument is the name of a text file to be parsed, and the second is a text file that your program will output. The output file will be in the following format:

the 2731
of 2110
and 2093
to 1501
a 1124
in 1096
is 1032
that 1019
be 702
it 686
for 569
as 511
they 481
but 465

...where the first string is a word in the text, and the second string is the frequency with which it occurs in the text. Strangely enough, the professor wants you to hand in this project using the turnin program to the CSE 326 database. He would like a copy of your source code, an explanation of how to compile your program, and a 1-2 paragraph answer to his question: based on the data you have accumulated,did Bacon write Shakespeare's plays?

III. The Nitty Gritty - IMPORTANT!!!
 


IV. Files for Project 2
 

V. Extra Credit!


VI. Interesting Tid Bits