cs201_hw3 - CS 201, Fall 2008 Homework Assignment 3 Due:...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CS 201, Fall 2008 Homework Assignment 3 Due: 18:00, January 12, 2009 In this homework assignment, you are supposed to implement a program for manipulating algebraic expressions of infix, prefix, and postfix forms. Your implementation should enable one to convert an expression of one form to another as well as to evaluate the expression. Your implementation MUST include the following global functions whose details are given below. Note that we will use these function prototypes to test your programs. Thus, you are not allowed to change the prototypes of these functions. On the other hand, you are free to add as many additional functions as you would like into your implementation. // It converts an infix expression exp to its equivalent prefix form. string infix2prefix( const string exp ); // It converts an infix expression exp to its equivalent postfix form. string infix2postfix( const string exp ); // It converts a prefix expression exp to its equivalent infix form. string prefix2infix( const string exp ); // It converts a prefix expression exp to its equivalent postfix form. string prefix2postfix( const string exp ); // It converts a postfix expression exp to its equivalent infix form. string postfix2infix( const string exp ); // It converts a postfix expression exp to its equivalent prefix form....
View Full Document

This note was uploaded on 02/01/2010 for the course CS CS-201 taught by Professor Selimaksoy during the Fall '09 term at Bilkent University.

Page1 / 2

cs201_hw3 - CS 201, Fall 2008 Homework Assignment 3 Due:...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online