April 4, 2007
Assignment 1: Random Sentence Generator
Based on an old CS107 assignment written by Julie Zelenski.
First three pages
taking verbatim from someone else’s handout.
In the past decade or so, computers have revolutionized student life.
In addition to
providing no end of entertainment and distractions, computers also have also facilitated
all sorts of student work from English papers to calculus.
One important area of student
labor that has been painfully neglected is the task of filling up space in papers, Ph.D.
dissertations, extension requests, etc. with important sounding and somewhat
grammatically correct random sequences.
An area that’s been neglected, that is, until
Due: Wednesday, April 11
at 11:59 p.m.
The Random Sentence Generator is a handy and marvelous piece of technology to create
random sentences from a structure known as a
A grammar is a
template that describes the various combinations of words that can be used to form
There are profoundly useful grammars available to generate extension
requests, generic Star Trek plots, your average James Bond movie, "Dear John" letters,
You can even create your own grammar!
Fun for the whole family!
show you the value of this practical and wonderful tool:
Tactic #1: Wear down the TA's patience.
I need an extension because I had to go to an alligator wrestling meet, and then, just when
my mojo was getting back on its feet, I just didn't feel like working, and, well I'm a little
embarrassed about this, but I had to practice for the Winter Olympics, and on top of that
my roommate ate my disk, and right about then well, it's all a haze, and then my dorm
burned down, and just then I had tons of midterms and tons of papers, and right about then I
lost a lot of money on the four-square semi-finals, oh, and then I had recurring dreams
about my notes, and just then I forgot how to write, and right about then my dog ate my
dreams, and just then I had to practice for an intramural monster truck meet, oh, and then
the bookstore was out of erasers, and on top of that my roommate ate my sense of purpose,
and then get this, the programming language was inadequately abstract.
Tactic #2: Plead innocence.
I need an extension because I forgot it would require work and then I didn’t know I was in
Tactic #3: Honesty.
I need an extension because I just didn't feel like working.