Chris Pollett>Old Classes>CS440, Fall 1997>Hw5

CS440 Homework 5

Due Monday, Nov.24

Read Clocksin & Mellish 60-132,200-220.

1. Get the connect4 program off the web page. Implement the predicate win as specified in the comments of the program.

2. Write a predicate toenglish/0 which asks for a number between 0-10000. It then outputs this number in English. i.e., 101 becomes hundred and one.

Bonus.(5pts) Write a predicate afrancais/0 which asks for a number between 0-10000. It then outputs this number in french. i.e., 92 becomes quatre-vingt douze.


Prepared by Chris Pollett.