

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


The George Washington University School of Engineering and Applied Science Department of Computer Science CSci 169 โ Software Paradigms โ Fall 2007 Programming Assignment # 4: Algebraic & Logic Expression Simplifier Due Date: Wednesday, December 10, 2007 Instructor: A. Bellaachia
Send the electronic version of your assignment to: [email protected]
Part I: Consider the problem of simplifying an algebraic expression, such as the symbolic
( LES ) using the following simplification rules:
C can be either a constant or an unknown variable.
Write a scheme function that implements the above rules.
Notes: o โAndโ and โOrโ are reserved keywords o Space is a delimiter. o You assume that the expression is syntactically correct. o You need to read a logical expression in infix format and apply your LES o You can assume that the input expression is fully parenthesized
Examples:
Part II:
Consider the problem of simplifying an algebraic expression, such as the symbolic
( AES ) using the following simplification rules:
Write a scheme function that implements the above rules.
Part III:
Write a menu in Scheme that allows a user to enter an expression and choose a simplifier to simplify his/her the input expression.