a program that evaluate a postfix expression(assume it's valid)such as 62+5*84/-
$15-20 USD
Zamknięte
Opublikowano prawie 22 lata temu
$15-20 USD
Płatne przy odbiorze
The program should read a postfix expression consisting of digits and operators into a character [login to view URL] should scan and evaluate the [login to view URL] algorithm is as follow: [login to view URL] the Null character('\0')to the end of the prefix [login to view URL] the Null character is encountered,no further processing is needed. [login to view URL] '\0'hasn't been encountered,read the expression from left to right. if the current character is a digit,push its integer value onto the [login to view URL], if the current charater is operator,pop the two top elements of the stack into variables x and [login to view URL] the result of the calculation onto the stack. [login to view URL] the Null character is encountered in the expression,pop the top value of the [login to view URL] is the result of the postfix expression. Functions: a. evaluatePostfixExpression b. calculate c. push: pushes value onto stack. d. pop: pops a value off stack. e. isEmpty: determine if stack is empty. f. printStack
## Deliverables
Need it before Apr 23 9am Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. Complete copyrights to all work purchased.
## Platform
Ms V c++