Java program that reads an arithmetic expression, performs the arithmetic in the expression, and outputs the answer. The expression will be in infix notation, which is the way we normally write them, the program converts the expression to postfix form, performs the calculation on the converted postfix form and outputs the answer. The program will requires two steps, both involving the use of a stack data structure: (1) convert the infix expression to postfix (2) process the postfix expression by computing it and output the result.
-
Notifications
You must be signed in to change notification settings - Fork 0
Java program that reads an arithmetic expression, performs the arithmetic in the expression, and outputs the answer. The expression will be in infix notation, which is the way we normally write them, the program converts the expression to postfix form, performs the calculation on the converted postfix form and outputs the answer. The program wil…
ashwinravishankar/Calculated-Expression
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Java program that reads an arithmetic expression, performs the arithmetic in the expression, and outputs the answer. The expression will be in infix notation, which is the way we normally write them, the program converts the expression to postfix form, performs the calculation on the converted postfix form and outputs the answer. The program wil…
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published