Skip to content

SarathSjr/CLI---calculator-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🧮 CLI Calculator (Java)

A Command-Line Interface (CLI) calculator built in Java that supports both arithmetic and scientific operations. Designed for clean input handling, clear output formatting, and beginner-to-intermediate level Java practice.


✨ Features

🔢 Arithmetic Operations

  • Addition (+)
  • Subtraction (-)
  • Multiplication (*)
  • Division (/)
  • Modulus (%)

🔬 Scientific Operations

  • Square Root ()
  • Power (a^b)
  • Sine (sin(θ))
  • Cosine (cos(θ))
  • Tangent (tan(θ))

🚀 How to Run

1. Clone the Repository

2. Open the project in any ide which supports java

3. Run MainClass.java


🏗️ Project Structure

  • MainClass.java – main program and menu
  • ArithmeticOperations.java – handles +, -, *, /, %, avg
  • ScientificOperations.java – handles sqrt, power, sin, cos, tan

📷 Sample Output (optional but impressive)

Would you like to perform operation (yes/no): yes


💻 Technologies Used

  • Java
  • Java Scanner and Math class

📜 License

This project is open-source and free to use under the MIT License.


📌 Future Plans / To-Do (optional)

  • Add factorial and logarithmic functions
  • Add memory/history storage

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages