Skip to content

ShaliniVerma21/Java-Programming-Project-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

Java-Programming-Project-1

📊 Scientific Calculator – Core Java Project

Welcome to the Scientific Calculator, a beginner-to-intermediate level Java console application that performs both basic and advanced scientific mathematical operations. Designed to help students and enthusiasts explore Java programming and object-oriented principles. Screenshot 2025-05-26 104142 Screenshot 2025-05-26 104159 Screenshot 2025-05-26 104232


🚀 Features

This calculator supports the following functionalities:

🧮 Basic Operations

  • Addition
  • Subtraction
  • Multiplication
  • Division

📐 Scientific Functions

  • Square Root (√)
  • Power (x^y)
  • Sine (sin)
  • Cosine (cos)
  • Tangent (tan)
  • Logarithm base 10 (log)
  • Natural Logarithm (ln)
  • Factorial (!)
  • Exponential (e^x)
  • Absolute Value (|x|)

🛠️ Technologies Used

  • Language: Java
  • Platform: Console-based (Command Line Interface)
  • Package: Scientific_Calculator
  • Java Concepts Used:
    • Classes and Objects
    • Methods and Loops
    • Switch Case
    • Scanner Class (User Input)
    • Exception Handling for invalid input

📁 Project Structure

Scientific_Calculator/

├── ScientificCalculator.java

├── README.md

  • ScientificCalculator.java – Contains the full source code of the calculator.
  • README.md – Project documentation.

▶️ How to Run the Project

Prerequisites:

  • JDK 8 or higher installed
  • A code editor (like IntelliJ IDEA, Eclipse, or VS Code) or just the terminal

Steps:

  1. Clone the Repository:

    git clone https://github.com/your-username/Scientific_Calculator.git
    cd Scientific_Calculator
  2. Compile the Java File:

    javac ScientificCalculator.java
  3. Run the Application:

    java ScientificCalculator
    

🧠 Sample Usage

----------------------------------------------------------------
                 Scientific Calculator
----------------------------------------------------------------

Please select an operation:
----------------------------------------------------------------
1. Addition (+)
2. Subtraction (-)
...
15. Exit
----------------------------------------------------------------
Enter your choice (1-15): 1
Enter first number: 12.5
Enter second number: 7.5
12.500000 + 7.500000 = 20.000000

Do you want to perform another operation? (Y/N): N

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages