Skip to content

MonikaSturman/Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Calculator

This is a basic calculator application built in Java using Swing GUI library. It performs simple arithmetic operations such as addition, subtraction, multiplication, and division.

Features

  • Addition
  • Subtraction
  • Multiplication
  • Division
  • Decimal point support
  • Change sign (+/-)
  • Clear input
  • Delete single character
  • Perform calculations with continuous input

Usage

  1. Clone the repository:
git clone https://github.com/MonikaSturman/calculator.git
  1. Compile the source code:
javac Calculator.java
  1. Run the application:
java Calculator
  1. Use the buttons to perform calculations:
  • Use number buttons to input digits.
  • Use arithmetic operation buttons to perform calculations.
  • Use "Delete" button to delete the last entered digit.
  • Use "Clear" button to clear the input.
  • Use "(-)" button to change the sign of the current input.
  • Use "=" button to perform the calculation.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages