Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rajtilak-2020/java_calculator
A simple Java based calculator.
https://github.com/rajtilak-2020/java_calculator
Last synced: 13 days ago
JSON representation
A simple Java based calculator.
- Host: GitHub
- URL: https://github.com/rajtilak-2020/java_calculator
- Owner: rajtilak-2020
- License: mit
- Created: 2024-11-03T12:38:54.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-16T16:04:17.000Z (about 2 months ago)
- Last Synced: 2024-11-16T17:17:57.587Z (about 2 months ago)
- Language: Java
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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**:
```bash
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.