Skip to content

Nav3005/Scientific-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Scientific Calculator

This project is a Scientific Calculator implemented using JavaFX for the GUI. It supports basic arithmetic operations as well as scientific functions like square root, power, sine, cosine, tangent, and logarithm.

Features

  • Basic Arithmetic Operations: Addition, subtraction, multiplication, and division.
  • Scientific Functions: Square root, power, sine, cosine, tangent, and logarithm.
  • User-Friendly GUI: Intuitive interface built with JavaFX.

Installation and Setup

  1. Ensure Java is Installed: Make sure you have Java Development Kit (JDK) installed on your system. You can download it from the official website.

  2. Clone the Repository: Clone this repository to your local machine using the following command:

    git clone https://github.com/Nav3005/Scientific-Calculator.git
  3. Navigate to the Project Directory: Change your current directory to the project directory:

    cd Scientific-Calculator
  4. Compile the Code: Compile the Java source files:

    javac ScientificCalculator.java
  5. Run the Application: Run the compiled Java application:

    java ScientificCalculator

Usage

  1. Launching the Application:

    • Run the ScientificCalculator class to start the application.
    • A window titled "Scientific Calculator" will appear with a display and buttons for numbers, basic arithmetic operations, and scientific functions.
  2. Using the Calculator:

    • Entering Numbers: Click on the number buttons to enter digits.
    • Performing Basic Operations: Click on the +, -, *, or / buttons to perform addition, subtraction, multiplication, or division respectively.
    • Calculating Result: Click on the = button to evaluate the expression and display the result.
    • Clearing the Display: Click on the C button to clear the display.
    • Using Scientific Functions:
      • Click on the button to calculate the square root of the displayed number.
      • Click on the pow button followed by entering the exponent to calculate the power.
      • Click on the sin, cos, or tan buttons to calculate the sine, cosine, or tangent of the displayed number.
      • Click on the log button to calculate the natural logarithm of the displayed number.

About

Project on Scientific Calculator using Java

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages