Skip to content

My Simple Calculator - Just built my first calculator in Java! πŸŽ‰ It can handle basic math like addition, subtraction, multiplication, and division βž•βž–βœ–οΈβž—. It has a simple GUI and even some extras like square root and factorial! Still learning, but excited about getting this to work! 😊

Notifications You must be signed in to change notification settings

AnimaMehrin/Simple-Java-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Simple Java Calculator

Description

This is a basic calculator application built using Java. It supports standard arithmetic operations such as addition, subtraction, multiplication, and division, as well as advanced functions like factorial, power, square root, and natural logarithm.

Features

  • Basic Operations: Add, Subtract, Multiply, Divide.
  • Advanced Functions: Factorial, Power, Square Root, Natural Logarithm.
  • Graphical User Interface (GUI): Built using Java Swing.

Files

  • Calculator.java: Contains the core logic for the calculator operations.
  • GUI.java: Implements the graphical user interface and handles user interactions.

Usage

  • Enter numbers and select an operation using the GUI.
  • Click the equals (=) button to compute the result.
  • Use the C button to clear the input.

Example Operations

  • Addition: Enter the first number, click +, enter the second number, and click =.
  • Subtraction: Enter the first number, click -, enter the second number, and click =.
  • Multiplication: Enter the first number, click *, enter the second number, and click =.
  • Division: Enter the first number, click /, enter the second number, and click =.
  • Factorial: Enter a number and click ! to get its factorial.
  • Power: Enter the base, click POW, enter the exponent, and click =.
  • Square Root: Enter a number and click SQRT to find its square root.
  • Natural Logarithm: Enter a number and click ln to get its natural logarithm.

About

My Simple Calculator - Just built my first calculator in Java! πŸŽ‰ It can handle basic math like addition, subtraction, multiplication, and division βž•βž–βœ–οΈβž—. It has a simple GUI and even some extras like square root and factorial! Still learning, but excited about getting this to work! 😊

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages