Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Postfix RPN Java Program - Help plz


ghost's Avatar
0 0

Hey all,

I am trying to create a program to evaluate a postfix expression. For example, if the user inputs a + b, the output would be ab+. I have to use the stack ADT and that pretty much sums up my goals for this program.

Unfortunately! I have no idea where / how to start and my professor doesn't seem to care too much. Could anyone give me some ideas as to how I would go about doing a problem like that?

Thanks all! Any help is much appreciated.


ghost's Avatar
0 0

is it for a calculator program? to evaluate those? i know you said a+b, but i mean does it need to handle more difficult expressions too?


ghost's Avatar
0 0

it's not for a calculator but you have the right idea, other examples of some expressions might be abc+ or abcd+/ and things like that.

Thanks for the response.


ghost's Avatar
0 0

what is it for? i have some java calculator which i made, with little comments.

i have a bunch i made. let me know.


ghost's Avatar
0 0

it's for my computer science class. It is a project that we have to do and I'm confused how I would go about doing it. I need some sort of guidance, but my teacher doesn't seem to want to help.

Thanks.


ghost's Avatar
0 0

so your asking us to do your school work for you


ghost's Avatar
0 0

…not at all fallingmidget, I'm asking for some guidance on how to get started like stated previously in other posts. Thanks for reading and for your non-informative response ;).

To the others, thank you very much. I appreciate it. Any other suggestions is greatly appreciated.