DISCUSS ANYTHING & EVERYTHING: Money, Dating, Health, Internet, Legal, Jobs, People, Places and more

Sponsored Links

Members Login
Username 
 
Password 
    Remember Me  
Chatbox
Please log in to join the chat!
Post Info TOPIC: how to create a program: Conversion of postfix using tabulation method?
La Torre, Jiro

Date:
how to create a program: Conversion of postfix using tabulation method?
Permalink   
 


can someone help me how to create a program like this? using any programming languages
output: will be like this(you can use different programming languages if you want and please explain the code, Thank you) Output will be like this(conversion of postfix using tabulation method) example: (A + B ^ C * D / E - F) Symbol OPERATOR STACK PostFix(stack) ( ( Empty A ( A + (+ A B (+ AB ^ (+^ AB C (+^ ABC * (+* ABC^ D (+* ABC^D / (+/ ABC^D* E (+/ ABC^D*E - (- ABC^D*E/+ F (- ABC^D*E/+F ) Empty ABC^D*E/+F- Conversion of postfix using tabulation method: if symbol = operand push to post(stack) symbol = operator incoming(operator) > operator(stack) then push op(stack) incoming(operator) <= operator(stack) then pop operator(stack) and push incoming(operator) if symbol = ( then push operator(stack) symbol = ) then pop all operator in operator(stack) until it meets an ( post stack. if symbol = ^ then push it to operator(stack)


here's my email: jiro.latorre@yahoo.com


thank you for your help guys!!


__________________
Page 1 of 1  sorted by
 
Quick Reply

Please log in to post quick replies.

Tweet this page Post to Digg Post to Del.icio.us