Skip to content

rajtilak-2020/Java_Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Java_Based_Calculator

A simple yet elegant calculator application developed in Java using Swing. This project demonstrates basic calculator functionalities and a clean user interface.

Features

  • Basic Arithmetic Operations: Addition, subtraction, multiplication, and division.
  • Square Root Calculation: Computes the square root of a number.
  • Backspace Functionality: Allows users to delete the last digit.
  • Clear Functionality: Clears the current input and resets the calculator.
  • Responsive Design: Adjusts button sizes and layout for better usability.

Installation

  1. Clone the Repository:

    git clone https://github.com/rajtilak-2020/Java_Based_Calculator.git

Usage

  • Basic Operations: Click the number buttons to input numbers, and then use the operation buttons (+, -, *, /) to perform calculations.
  • Square Root: Click the √ button to compute the square root of the displayed number.
  • Clear: Click C to clear the display and reset the calculator.
  • Backspace: Click ← to delete the last digit.
  • Equals: Click = to compute the result of the current operation.
  • Shutdown: Click ▲ to close the application.

Development

The project was developed using Java Swing for the graphical user interface. The layout is created using GridLayout, and custom button borders are implemented using a RoundedBorder class.

Requirements

  • Java Development Kit (JDK) 8 or higher.

Dependencies

  • No external dependencies required.

Acknowledgements

Java Swing for the graphical user interface. Fonts and colors were chosen for better readability and aesthetics.

About

A simple Java based calculator.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages