Skip to content

Simple Calculator is a user-friendly Java-based application that provides basic arithmetic operations: addition, subtraction, multiplication, and division. It features a graphical user interface (GUI) created using Swing, allowing users to easily input numbers, select an operation, and view the result.

Notifications You must be signed in to change notification settings

vishnuvvr-cloud/SimpleCalculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Simple Calculator

Project Description

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.

Features

  • Addition
  • Subtraction
  • Multiplication
  • Division
  • Handles invalid input and division by zero

Installation Instructions

To install and run the Simple Calculator using NetBeans, follow these steps:

  1. Clone the repository:

    git clone https://github.com/vishnuvvr-cloud/simple-calculator.git
  2. Open NetBeans.

  3. Open the Project:

    • Go to File > Open Project.
    • Navigate to the directory where you cloned the repository.
    • Select the simple-calculator project folder and click Open Project.
  4. Build the Project:

    • Right-click on the project in the Projects pane.
    • Select Build.
  5. Run the Application:

    • Right-click on the project in the Projects pane.
    • Select Run.

Usage Instructions

To use the Simple Calculator, follow these steps:

  1. Run the application as described above.
  2. Enter the first number in the provided text field.
  3. Enter the second number in the provided text field.
  4. Select the operation you want to perform from the dropdown menu (Addition, Subtraction, Multiplication, Division).
  5. Click the "Calculate" button to see the result.
  6. View the result in the result text field.

Example

  • A GUI window will open
  • Enter First Number: 5
  • Enter Second Number: 3
  • Select Operation: Addition
  • Click "Calculate"
  • Result: 8

Contributing

We welcome contributions! Please follow these steps to contribute:

  1. Fork the repository.
  2. Create a new branch:
    git checkout -b feature/your-feature-name
  3. Make your changes and commit them:
    git commit -m "Add your commit message here"
  4. Push to the branch:
    git push origin feature/your-feature-name
  5. Create a Pull Request.

Contact Information

For support or questions, please contact [email protected].

About

Simple Calculator is a user-friendly Java-based application that provides basic arithmetic operations: addition, subtraction, multiplication, and division. It features a graphical user interface (GUI) created using Swing, allowing users to easily input numbers, select an operation, and view the result.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages