Reformat this code to make it more readable.
Add a comment to describe the algorithm(s) used.
When you are finished, email a copy of the code to dbennett@edinboro.edu.