This program is an arithmetic calculator that evaluates expressions according to the rules of operator precedence.
This program was written in Java and uses Swing.
Download an Executable for Java
ZIP File Contents
Unzip the contents of Calculator.zip into their own directory. Installation of the JRE (Java Runtime Environment) is also required.
Using the Program
Run Calculator.jar to start the program.
The program interface consists of a number pad and a display that shows the user's current input as an expression. The number pad includes arithmetic operators, parentheses, and a decimal point.
The backspace button, denoted by a left-pointing arrow, deletes the last digit or operator in the current expression. The "C" button clears the expression.
The equals button causes the expression to be evaluated, and the result is shown in the display.
The program accepts keyboard input.