Thursday, December 06, 2007

ICA-CP: 12/6/07 - Flow charting and Inspiration

Good afternoon!

We are going to review flow charting symbols today, and then do a refresher on Inspiration. The flow charts for your Eliza programs must be done in Inspiration.
Here's a flow chart web reference: http://homepage.cs.uri.edu/faculty/wolfe/book/Readings/Reading13.htm

Now that we've gone over the Parrot program, here are some hints from it for your Eliza program.

Stage 1:
Someone types one word, and Eliza responds. This uses KeyboardReader = new KeyboardReader(); and userInput = reader.readLine();

Stage 2: This adds the while (finished == false) loop. So, the user can keep typing emotion words over and over. When the user types "Done", the program exits.

Stage 3: This adds the StringTokenizer loop. So, now the user can type whole sentences.

0 Comments:

Post a Comment

<< Home