Simple Calculator is a user-friendly Java-based application that performs basic arithmetic operations including addition, subtraction, multiplication, and division. The application features a graphical user interface (GUI) created using Swing, making it easy for users to input numbers, select an operation, and view the result. The calculator also handles edge cases such as invalid input and division by zero to ensure a smooth user experience.
- Addition
- Subtraction
- Multiplication
- Division
- Handles invalid input and division by zero
To install and run the Simple Calculator using NetBeans, follow these steps:
-
Clone the repository:
git clone https://github.com/vishnuvvr-cloud/simple-calculator.git
-
Open NetBeans.
-
Open the Project:
- Go to
File > Open Project. - Navigate to the directory where you cloned the repository.
- Select the
simple-calculatorproject folder and clickOpen Project.
- Go to
-
Build the Project:
- Right-click on the project in the Projects pane.
- Select
Build.
-
Run the Application:
- Right-click on the project in the Projects pane.
- Select
Run.
To use the Simple Calculator, follow these steps:
- Run the application as described above.
- Enter the first number in the provided text field.
- Enter the second number in the provided text field.
- Select the operation you want to perform from the dropdown menu (Addition, Subtraction, Multiplication, Division).
- Click the "Calculate" button to see the result.
- View the result in the result text field.
- A GUI window will open
- Enter First Number: 5
- Enter Second Number: 3
- Select Operation: Addition
- Click "Calculate"
- Result: 8
We welcome contributions! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch:
git checkout -b feature/your-feature-name
- Make your changes and commit them:
git commit -m "Add your commit message here" - Push to the branch:
git push origin feature/your-feature-name
- Create a Pull Request.
For support or questions, please contact [email protected].