You don't have to help me do my homework, jsut see if you can break it. 🙂
Here's a java class
Download it, and then at the command prompt type "java inToClass" to run it.
It should either give a correct answer, or a descriptive error message for any input you give it. If it gives an incorrect answer or no answer at all, let me know 🙂
It takes input in the form of: a=b+c*(d+e)
the first two characters are required, as per the assignment, valid input has to begin with "x=".
b+c*(d+e) can be any infix expression.
Note that it operates on letters rather than numbers.
Thanks for your help 🙂
Here's a java class
Download it, and then at the command prompt type "java inToClass" to run it.
It should either give a correct answer, or a descriptive error message for any input you give it. If it gives an incorrect answer or no answer at all, let me know 🙂
It takes input in the form of: a=b+c*(d+e)
the first two characters are required, as per the assignment, valid input has to begin with "x=".
b+c*(d+e) can be any infix expression.
Note that it operates on letters rather than numbers.
Thanks for your help 🙂