Computer Science 3675
Summer 1999
Programming Assignment 6

Due: June 14 (Note extension, to avoid clash with 3510 class. It would be a good idea to get this done early.)

For this assignment, rework your derivative program into a more object-oriented form. Build a separate file for each kind of expression. All of the operations on a given kind of expression should be put together.

Get files Expression.ast, VarExpr.ast, ConstExpr.ast and SumExpr.ast, implementing the concepts of Expression (a general expression), a variable, a constant and a sum, respectively. Look at them as examples of how to write your new files. Also get TestExpr.ast, which contains some tests of these. All are in directory /export/stu/3675/deriv.

Add new files to cover difference, products and constant powers.

You should not have to modify files VarExpr.ast, ConstExpr.ast, SumExpr.ast or Expression.ast at all in order to write your new files. Just add new files. The tester will need to be modified, to make it do more tests.