The Calculator App is a Java application that allows users to perform basic arithmetic operations such as addition, subtraction, multiplication, and division.
- User-friendly graphical user interface (GUI)
- Supports addition, subtraction, multiplication, and division operations
- Error handling for invalid input and division by zero
- Clicking on the "Code" button on this page.
- Select "Download ZIP".
- Ensure you have Java installed on your computer.
- Clone this repository to your local machine using the following command:
git clone https://github.com/Sirak-K/my-project-6.git
- Compile the
Calculator.java
file using the Java compiler:javac Calculator.java
. - Run the application:
java Calculator
. - The GUI window titled "Simple Calculator" will appear.
- Enter the first number in the "Enter first number" text field.
- Enter the second number in the "Enter second number" text field.
- Click on the operation button (Add, Subtract, Multiply, Divide) to perform the corresponding arithmetic operation.
- The result will be displayed in the "Result" text field.
- Java
- Swing (Java GUI Library)
This project is licensed under the MIT License.
For any questions or feedback, please contact [email protected].