Lab - Design and Implementation

Questions will be denoted with a Q.

The Markov Chain algorithm

The C implementation

Table Functions

Strings

The C++ Implementation

The Python Implementation

Strictly for Fun

You are done with your gradesheet. Nothing more will go there. Still need to follow these instructions, but will not submit anything as a result.

See the fortune directory (do a man; it moves around a little bit). It's usually somewhere around /usr/share/games/fortune.

Modify one of the above implementations so, instead of an entire file being a "story" (a start and stop place), each entry in the fortunes files (separated by a %) is a new "story".