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