Skip to content

This repository hosts a basic Java calculator implemented with AWT for a graphical interface. It supports arithmetic operations, percentage calculation, memory functions, and error handling.

License

Notifications You must be signed in to change notification settings

TanishqChauhan3/Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Simple Java Calculator

This is a simple calculator application implemented in Java using AWT (Abstract Window Toolkit) for the graphical user interface.

Description

The calculator provides basic arithmetic operations such as addition, subtraction, multiplication, and division. It also includes additional functionalities such as percentage calculation, clearing the display, and more.

Features

  • Arithmetic Operations: Addition, subtraction, multiplication, and division.
  • Additional Functions: Percentage calculation, reciprocal (1/x), square (x^2), square root (x^1/2).
  • Clearing Options: Clear Entry (CE), Clear (C).
  • Memory Functionality: Memory Recall, Memory Store, and Memory Clear.
  • Error Handling: Prevents division by zero and provides feedback for invalid operations.
  • User Interface: Simple and intuitive interface using AWT components.

Usage

To use the calculator:

  1. Run the compiled Java program.
  2. Click on the buttons to perform arithmetic operations or other functionalities.
  3. Input numbers using the numerical buttons.
  4. View the result in the display area.
  5. Use additional functionalities like memory operations or clearing options as needed.

Dependencies

This application requires Java to be installed on your system.

Contributing

Contributions are welcome! If you have any ideas for improvements or find any issues, feel free to open an issue or create a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

This repository hosts a basic Java calculator implemented with AWT for a graphical interface. It supports arithmetic operations, percentage calculation, memory functions, and error handling.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages