Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Calculator

Simple GUI Calculator using Java

Calculator Application

A simple graphical calculator built using Java's Swing library. This application allows basic arithmetic operations such as addition, subtraction, multiplication, division, percentage, and backspace. It also handles decimal numbers and includes a clear button to reset the calculator.

Features

  • Addition (+)
  • Subtraction (-)
  • Multiplication (*)
  • Division (/)
  • Percentage (%)
  • Clear (C)
  • Backspace (B)
  • Decimal point (.)
  • Numeric input (0-9)

Requirements

  • Java 8 or later
  • Any Java IDE (e.g., Eclipse, IntelliJ IDEA) or a text editor with the JDK installed

How to Run and Navigate to the project directory:

  1. Clone this repository to your local machine using the following command:
    git clone https://github.com/yourusername/calculator.git
    
  2. Navigate to the project directory:
    cd calculator
    javac clac.java
    java clac

How to use this:

  1. Click on the buttons for digits (0-9) to input numbers.
  2. Use the arithmetic operation buttons (+, -, *, /, %) to perform calculations.
  3. Press C to clear the input field.
  4. Press B to remove the last character.
  5. The = button will display the result of the calculation.

About

Simple GUI Calculator using Java

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages