https://github.com/allenjue/infix-to-postfix-calculator
A postfix calculator that utilizes Java Swing to create a GUI and an infix to postfix algorithm to process user-inputted mathematical expressions to calculate a numeric value.
https://github.com/allenjue/infix-to-postfix-calculator
Last synced: 2 months ago
JSON representation
A postfix calculator that utilizes Java Swing to create a GUI and an infix to postfix algorithm to process user-inputted mathematical expressions to calculate a numeric value.
- Host: GitHub
- URL: https://github.com/allenjue/infix-to-postfix-calculator
- Owner: AllenJue
- Created: 2021-11-17T22:24:03.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-17T03:24:14.000Z (almost 3 years ago)
- Last Synced: 2025-01-21T11:33:57.125Z (4 months ago)
- Language: Java
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# infix-to-postfix-calculator
A postfix calculator that utilizes Java Swing and an infix to postfix algorithm to process user-inputted mathematical expressions to calculate a numeric value.# Reason
I wanted to get some experience with creating a GUI, and Java Swing was an easily-accessible and manageable way to implement a calculator GUI. This project helped me learn how to use event listeners and learn how to implement the shunting-yard algorithm (infix to postfix) to preprocess user-inputed expressions to be computer readable.# Future improvements
- Add event listeners to keyboard keys to make it easier for clients to input expressions
- Make implicit multiplication and division with parenthesis
- Add other operations (log, sin, cos, tan, ..., etc)